Caching details of objects in varnish...
Dag-Erling Smørgrav
des at des.no
Fri Feb 6 22:22:58 CET 2009
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
More information about the varnish-misc
mailing list