Hi Alecs,

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.

Per.


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?
> 
> Thanks!
> 
> Alecs
> 
> On Fri, Dec 12, 2008 at 7:20 PM, Per Buer <[email protected]
> <mailto:[email protected]>> 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.
> 
>     Per.
> 
>     --
>     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/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to