Caching details of objects in varnish...
Jeff Anderson
jeff at funnyordie.com
Thu Feb 5 17:35:56 CET 2009
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
Is the entire url cached or just the advertprovider.html portion? It seems
the whole url is cached because I observe so many misses for these calls.
The parameters are nearly always random so caching the entire url is
very inefficient. I've tried in vcl_fetch:
if obj.url ~ 'advertproviderformat.html {
set obj.ttl = 24h;
}
But I think it is just caching the entire url which extremely inefficient.
How can I just instruct varnish to serve the advertproviderformat.html when
it receives one of the full url requests? How can I handle this in VCL?
Thanks,
--Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090205/c6c401e5/attachment-0001.html>
More information about the varnish-misc
mailing list