I need to write VCL in Varnish so to prevent caching under certain conditions like cookie value.
Any idea how to do that?
Place the following inside your vcl_recv:
# as soon as we have a NO_CACHE cookie pass request if (req.http.cookie ~ "NO_CACHE=") { return (pass); }