Caching details of objects in varnish...

Jeff Anderson jeff at funnyordie.com
Fri Feb 6 21:01:45 CET 2009


Can you please give me a brief code example regarding how to do this  
in vcl?

Thanks,


On Feb 5, 2009, at 3:11 PM, Dag-Erling Smørgrav wrote:

> Jeff Anderson <jeff at funnyordie.com> writes:
>> Is there a way in VCL to cache just the base html of a page without
>> its parameters?  For example:
>> /advertproviderformat.html?provider=2342342&foo=3434&bar=34213142
>
> Yes, hook into vcl_hash and modify the hash string as appropriate.
>
> DES
> -- 
> Dag-Erling Smørgrav - des at des.no

--Jeff
jeff at funnyordie.com






More information about the varnish-misc mailing list