[PATCH] make obj.uncacheable available in deliver

Federico Schwindt fgsch at lodoss.net
Wed Nov 5 15:22:40 CET 2014


Hi,

Someone mentioned on irc that there is no to check whether the object was a
pass (or hit-for-pass) short of adding headers in a few vcl subroutines.

There is this obj.uncacheable attribute but it's only available in vcl_hit.
This doesn't make much sense. vcl_hit will only be reached on hit, not on
hit-for-pass. Oops!

This patch makes obj.uncacheable available in deliver so you can find in a
common place whether the request was a pass (or hit-for-pass) or hit.
I've removed it from vcl_hit as always true.

This patch builds upon my previous patch, btw.

Comments? OK?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141105/ec17a69a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001.move-obj_uncacheable.patch
Type: text/x-patch
Size: 1067 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141105/ec17a69a/attachment.bin>


More information about the varnish-dev mailing list