perbu at linpro.no
Fri Dec 12 22:41:55 CET 2008
You can modify the object in vcl_fetch. See
http://varnish.projects.linpro.no/wiki/VCLExampleDefault for a flow
chart of VCL. Also read through "man vcl".
You can alter the headers in vcl_fetch before doing "deliver" on them
which will store the object and insert it into the cache.
Yes, it makes sense.
Alecs Henry wrote:
> Hi Per,
> I'm looking into changing the headers all right! Where do I do that in VCL?
> I wanted to try to set some cache control headers before the object was
> put into varnish cache.
> Does that even make sense?
> On Fri, Dec 12, 2008 at 7:20 PM, Per Buer <perbu at linpro.no
> <mailto:perbu at linpro.no>> wrote:
> Alecs Henry wrote:
> > Hi!
> > Is there a place where I can alter the backend response before it is
> > inserted into the cache?
> You can remove, add and alter headers - but there isn't much you can do
> to the content. Except to ESI, process it, I guess.
> http://linpro.no/ | http://redpill.se/
Per Buer - Leder Infrastruktur og Drift - Redpill Linpro
Telefon: 21 54 41 21 - Mobil: 958 39 117
http://linpro.no/ | http://redpill.se/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 260 bytes
Desc: OpenPGP digital signature
More information about the varnish-misc