Deny caching on mime-type

Andreas Plesner Jacobsen apj at mutt.dk
Fri Mar 23 11:43:32 CET 2012


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



More information about the varnish-misc mailing list