Caching details of objects in varnish...

Paras Fadte plfgoa at gmail.com
Tue Feb 10 10:39:48 CET 2009


query stripping ?


On Thu, Feb 5, 2009 at 10:05 PM, Jeff Anderson <jeff at funnyordie.com> wrote:
> 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
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
>



More information about the varnish-misc mailing list