Deny caching on mime-type
Shibashish
shib4u at gmail.com
Fri Mar 23 12:23:52 CET 2012
On Fri, Mar 23, 2012 at 4:13 PM, Andreas Plesner Jacobsen <apj at mutt.dk>wrote:
> On Fri, Mar 23, 2012 at 10:34:34AM +0000, Roberto O. Fernández Crisial
> wrote:
> >
> > Maybe you should try with something on vcl_fetch like:
> >
> > if (beresp.http.Content-Type == 'text/vnd.wap.wml')
> > {
> > return(pass);
> > }
>
> That would be return(hit_for_pass) since 3.0.
>
> Remember to set a TTL if you want to cache the objects uncacheability
> (which
> you generally want)
>
> --
> Andreas
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
Awesome.. Thanks Roberto and Andreas.. works as expected !
I'm on varnish-2.1.5-1
--
ShiB.
while ( ! ( succeed = try() ) );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120323/7c280e6b/attachment.html>
More information about the varnish-misc
mailing list