Caching based on response header
Per Buer
perbu at varnish-software.com
Thu Sep 15 15:25:51 CEST 2011
Hi,
On Thu, Sep 15, 2011 at 3:19 PM, Barak Yaish <barak.yaish at gmail.com> wrote:
>
>
> I'm new to Varnish, and I didn't find in the docs how to do the following -
> cache the response based on customized HTTP header (which the backend may or
> may not set), for example cache the response in case the one of the response
> headers is "SomeHeader".
>
How will Varnish know the value of the response header before it has talked
to the backend?
Cache lookups happend after we get the request, and at that time the
response headers are unknown. You need to figure out what content to deliver
purely based on the request.
--
Per Buer, CEO
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110915/f98d9f79/attachment-0003.html>
More information about the varnish-misc
mailing list