Use varnish to set one week expires header

Caunter, Stefan scaunter at topscms.com
Thu Jul 29 19:40:20 CEST 2010


I have varnish sending cache-control and Expires headers in vcl_fetch.

 

Does anyone know of inline C to take the Last-Modified header and add a
week to it? The Expires date is currently hard-coded in the config which
is not ideal.

 

Stefan Caunter :: Senior Systems Administrator :: TOPS

e: scaunter at topscms.com  ::  m: (416) 561-4871

www.thestar.com www.topscms.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100729/af772ef3/attachment-0003.html>


More information about the varnish-misc mailing list