Thanks for the idea. IIS doesn't seem to want to allow you to set custom 
Cache-Control headers on the default error handler pages, but if you define a 
custom 406 handler, you can set your own headers there. I did this and added 
some logging to capture the offending requests which were generating 406 
responses. Problem solved!



From: Conan <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Saturday, April 6, 2013 12:44 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: 406 responses being cached

On Thu, Apr 4, 2013 at 2:44 AM, Brendan Webb 
<[email protected]<mailto:[email protected]>> wrote:
I'm running ATS 3.0.4 in front of IIS 7.5.

Is there a way to tell ATS not to cache 406 responses?

AFAIK, if you can add a "Cache-Control: no-cache" header on IIS for 406 
response, ATS will not cache it.

If unable to configure on IIS, you can try to add that header on ATS with the 
experimental "header_rewrite" plugin when reading 406 response from IIS .  (You 
can have a try. I did't test it and don't know if the plugin build well on your 
3.0.4 environment.)

ref:
https://github.com/apache/trafficserver/tree/master/plugins/experimental/header_rewrite
https://github.com/apache/trafficserver/blob/master/plugins/experimental/header_rewrite/Examples/YCS-EC

Reply via email to