Skip to content

Commit d1d6d4d

Browse files
Malvozmolant
authored andcommitted
Fix: Send Vary header consistently
Close #858
1 parent 5717c2e commit d1d6d4d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web.config

+1-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<action type="Rewrite" value="{C:3}" />
108108
</rule>
109109
<!-- add vary header -->
110-
<rule name="AddVaryAcceptEncoding" preCondition="PreCompressedFile" enabled="true">
110+
<rule name="AddVaryAcceptEncoding" enabled="true">
111111
<match serverVariable="RESPONSE_Vary" pattern=".*" />
112112
<action type="Rewrite" value="Accept-Encoding" />
113113
</rule>
@@ -122,9 +122,6 @@
122122
<action type="Rewrite" value="gzip" />
123123
</rule>
124124
<preConditions>
125-
<preCondition name="PreCompressedFile">
126-
<add input="{HTTP_URL}" pattern="\.((?:css|html|ico|js|map|svg|txt|xml|webmanifest)\.(gz|br))" />
127-
</preCondition>
128125
<preCondition name="PreCompressedZopfli">
129126
<add input="{HTTP_URL}" pattern="\.((?:css|html|ico|js|map|svg|txt|xml|webmanifest)\.gz)" />
130127
</preCondition>

0 commit comments

Comments
 (0)