deliver vs hit_for_pass with ttl of 0

James Pearson james at ifixit.com
Mon Aug 11 20:24:22 CEST 2014


There are some instances where we know in vcl_fetch that we don't want to cache
an object, but we also don't want to cache the no-cache decision (that is, the
next request should be sent to the backend).  We're doing that by setting
`beresp.ttl = 0s`, which works fine.

What I'm wondering is as to whether it's better to return `deliver` or
`hit_for_pass`, or if it really makes any difference at all.  Both should be
immediately removed from their respective caches, right?

 - James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140811/1521f0af/attachment.pgp>


More information about the varnish-misc mailing list