I use the following cache output profile:
<add name="MyFunkyProfile" duration="180" varyByParam="*" location="ServerAndClient" />
In dev, I have a response header with one Vary entry:
HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 ... Vary: Accept-Encoding Cache-Control: private, max-age=180, s-maxage=0 ...
When I deploy my application, I have an extra Vary entry inserted in the response:
HTTP/1.1 200 OK Server: nginx ... Vary: Accept-Encoding Cache-Control: private, max-age=180, s-maxage=0 ... Vary: * ...
Why is this extra Vary entry? This prevents the cache from working properly.
Any ideas how to fix this?
nakhli
source share