Hi,

On Thu, Sep 15, 2011 at 3:19 PM, Barak Yaish <[email protected]> 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>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to