Skip to content

Commit a187b95

Browse files
committed
MAGETWO-31196: ETag support on frontend, expiration/lifetime management
1 parent 8fde41c commit a187b95

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.htaccess

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ AddType application/xml xml
104104

105105
Header set X-Frame-Options SAMEORIGIN
106106

107-
Header append Cache-Control no-cache
107+
<FilesMatch ".(html)$">
108+
Header append Cache-Control no-cache
109+
Header append Vary: Accept-Encoding
110+
</FilesMatch>
108111

109112
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|htm)$>
110113
Header append Cache-Control public
@@ -114,10 +117,6 @@ AddType application/xml xml
114117
Header append Cache-Control no-store
115118
</FilesMatch>
116119

117-
<FilesMatch ".(html)$">
118-
Header append Vary: Accept-Encoding
119-
</FilesMatch>
120-
121120
</IfModule>
122121

123122
<IfModule mod_deflate.c>

0 commit comments

Comments
 (0)