From a187b9576232a222f74a8746f6b38278cbfc078e Mon Sep 17 00:00:00 2001
From: Olga Matviienko <omatviienko@ebay.com>
Date: Fri, 23 Jan 2015 16:12:53 +0200
Subject: [PATCH] MAGETWO-31196: ETag support on frontend, expiration/lifetime
 management

---
 .htaccess | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.htaccess b/.htaccess
index ebdf426004b..0c1ed880165 100644
--- a/.htaccess
+++ b/.htaccess
@@ -104,7 +104,10 @@ AddType application/xml xml
 
     Header set X-Frame-Options SAMEORIGIN
 
-    Header append Cache-Control no-cache
+    <FilesMatch ".(html)$">
+        Header append Cache-Control no-cache
+        Header append Vary: Accept-Encoding
+    </FilesMatch>
 
     <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|htm)$>
         Header append Cache-Control public
@@ -114,10 +117,6 @@ AddType application/xml xml
         Header append Cache-Control no-store
     </FilesMatch>
 
-    <FilesMatch ".(html)$">
-        Header append Vary: Accept-Encoding
-    </FilesMatch>
-
 </IfModule>
 
 <IfModule mod_deflate.c>
-- 
GitLab