we're using this varnish module http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html V 3.1.2. With this module comes a default.vcl which really works well out of the box, but there is a part of the sub deliver that I don't get.
When an html object is cacheable, the sub fetch sets http.magicmarker=1
Here's what happens in the sub deliver :
if (resp.http.magicmarker) {
# Remove the magic marker
unset resp.http.magicmarker;
set resp.http.Cache-Control = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
set resp.http.Pragma = "no-cache";
set resp.http.Expires = "Mon, 31 Mar 2008 10:00:00 GMT";
set resp.http.Age = "0";
}
Is there a reason to set Cache-Control and Pragma to "no-cache" ?
Here is the full vcl provided with the module : https://gist.github.com/ashsmith/5429365/raw/07f047d679edfdca0a52a62b606e2dd871c360a4/default_3.0.vcl
Thank you for your help