Jeff Anderson <[email protected]> writes:
> Dag-Erling Smørgrav <[email protected]> writes:
> > Jeff Anderson <[email protected]> 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 - [email protected]
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to