Caching based on response header
perbu at varnish-software.com
Thu Sep 15 15:25:51 CEST 2011
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> |
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc