On Dec 4, 2013, at 2:31 AM, Christian HUTTER <[email protected]> wrote:
> Dear All, > > I’m facing a caching problem with our ATS 3.2.4 installation and hope someone > here can point me into the correct direction. We are using ats as reverse > caching proxy for a variety of web sites. One of those sites does a > redirection based upon the user agent of the client (the goal is to give > users of mobile devices a specific site access). As soon as I enable caching > for these sites the following happens. Once a mobile device accesses the site > the device is (correctly) redirected to the mobile version of the web site. > If now a desktop based client accesses the same site it seems as if the > redirect is cached so also the desktop client is sent to the mobile site as > well. Is there a way to not cache redirects? Well, by default redirects aren’t cacheable afaik. If you want to be sure the redirect isn’t cacheable, just have your origin inject a Cache-Control: max-age=0,no-store or some such. Also check your configs to get some ideas as to if and why it’s caching the redirects. — leif
