Caching details of objects in varnish...

Jeff Anderson jeff at funnyordie.com
Sat Feb 7 00:18:14 CET 2009


Thanks.

On Feb 6, 2009, at 1:22 PM, Dag-Erling Smørgrav wrote:

> Jeff Anderson <jeff at funnyordie.com> writes:
>> Dag-Erling Smørgrav <des at des.no> writes:
>>> 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.
>> Can you please give me a brief code example regarding how to do this
>> in vcl?
>
> Read vcl(7); basically, you want to replace the stock vcl_hash (a copy
> of which is included in the man page) with a version that uses  
> regsub()
> to extract the relevant portion of the URL.
>
> DES
> -- 
> Dag-Erling Smørgrav - des at des.no

--Jeff
jeff at funnyordie.com






More information about the varnish-misc mailing list