I would like to setup Varnish to purge content in cache and get it directly from backend when CTRL+R or CTLR+F5 is pressed.
I use these rules but this only gets content from backend when CTRL+F5 is pressed. When I press F5 only I get data from cache.
acl CTRLF5 {
"127.0.0.1";
}
sub vcl_hit {
if (client.ip ~ CTRLF5) {
if (req.http.pragma ~ "no-cache" || req.http.Cache-Control ~ "no-cache")
{
set obj.ttl = 0s;
return(pass);
}
else { return(deliver); }
}
else { return(deliver); }
}