On 23.03.2012 11:29, Shibashish wrote: > I have a IIS back-end server which serves a aspx file Content-Type as > text/html or text/vnd.wap.wml depending on the browser request, i.e it > serves Content-Type text/vnd.wap.wml to a wap-browser, but serves > Content-Type text/html to chrome/firefox/ie. > > How do I ask varnish not to cache based on mime-tyme text/vnd.wap.wml ?
You shouldn't. Have IIS add a "Vary: User-Agent" header, so that varnish caches the different versions. You might want to normalize the User-Agent header in vcl_recv() to reduce the number of variants and improve cache efficiency, but that's not strictly necessary. Hauke.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
