req.hash_always_miss
BOOL, can be read and set
, but not unset
.
Available inrecv
Forces the request to miss whether we have a cached version of the object or not.
This differs from passing in that Varnish will still request collapse and will
avoid the creation of hit_for_pass
objects.
Try it out
req.hash_always_miss
is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.
Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Early expiry of cached objects
Cached a large number of objects for too long and want to update and shorten their TTLs.