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?
↧