Varnish Cached Object Time -
How can we get the time of cached object in varnish?
I need something like this, say that the object is in the cache for 5 minutes and for a specific IP, I want to tell the content from the backend to the server but not with the cache.
You can set up your vcl, it will always be remembered when some headers are set or when the request Comes from a certain browser
In your vcl_recv set
sub vcl_recv {if (req.http.Cache-control ~ "no-cache" & client Ip ~ editor) {set req.hash_always_miss = true; } }
Comments
Post a Comment