Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

ARR Cache fails for certain values of Accept header

$
0
0
IIS is configured as a proxy/cache for third party webserver. Client issues request to get resource having Content-Type: text/javascript; charset=UTF-8. The response is served from cache, if client's Accept:*/* or Accept:text/javascript; charset=UTF-8. However, if Accept header contains quality parameter, e.g. Accept:text/html,*/*;q=0.5 or accepts only text/html, then cache is always missed and response is served by third party webserver. One simple hack is to change Content-Type: text/javascript; charset=UTF-8 to Content-Type: text/html, but is there some way to set up cache such that it ignores Accept parameter?

Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>