Setting ‘Cache-Control’ header versus Varnish
-
On my virtual host to cache page is used varnish but is not customizable. I need to prevent cache on this page or this request modifying the Ajax call to set the ‘Cache-Control’ header to ensure that the call is not cached by Varnish.
This is the page/ajax req(this is the varnish conf):
if (req.url ~ “^/(cart|my-account|checkout|addons)”) {
return (pass);
}if ( req.url ~ “\?add-to-cart=” ) {
return (pass);
}I doesn’t understand if i can do it with your plugin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Setting ‘Cache-Control’ header versus Varnish’ is closed to new replies.