Change Vary:* = need Vary:Accept-Encoding
I would like to change how orchard 1.9.1 sets the Vary request header form Vary * to Accept-Encoding. Tried: in web.config and got response headers of both * and Accept-Encoding. I serve gzip static files from AWS cloud front and to cache these files for users I need a Accept-Encoding Header as Vary: Accept-Encoding This somewhat works to give the header Accept-Encoding: gzip,deflate; but it does not work with a Vary header of Vary:*
<add name="Accept-Encoding" value="gzip,deflate" />
``
Still it does not cache these resources on users machines without the proper Vary header.
But when add
<remove name="Vary" />
``
And add
<add name="Vary" value="Accept-Encoding" />
``
With
<add name="Accept-Encoding" value="gzip,deflate" />
``
Then I get a static file error on my sites and a Vary response header of Vary: *,Accept-Encoding,Accept-Encoding
NO settings in Orchard cache to change Vary to anything it will stay Vary:* no matter what, and you cannot change it or fix it in the web config or anywhere else