File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ sub vcl_recv {
97
97
set req.url = regsuball (req.url ," &gclid=[^&]+" ," " ); # strips when QS = "?foo=bar&gclid=AAA" or QS = "?foo=bar&gclid=AAA&bar=baz"
98
98
99
99
# static files are always cacheable. remove SSL flag and cookie
100
- if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$" ) {
100
+ if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|html| css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$" ) {
101
101
unset req.http.Https ;
102
102
unset req.http. /* {{ ssl_offloaded_header }} */ ;
103
103
unset req.http.Cookie ;
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ sub vcl_recv {
98
98
set req.url = regsuball (req.url ," &gclid=[^&]+" ," " ); # strips when QS = "?foo=bar&gclid=AAA" or QS = "?foo=bar&gclid=AAA&bar=baz"
99
99
100
100
# static files are always cacheable. remove SSL flag and cookie
101
- if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$" ) {
101
+ if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|html| css|js|jpg|jpeg|png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf)$" ) {
102
102
unset req.http.Https ;
103
103
unset req.http. /* {{ ssl_offloaded_header }} */ ;
104
104
unset req.http.Cookie ;
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ Options -MultiViews
28
28
AddType application/javascript js jsonp
29
29
AddType application/json json
30
30
31
+ # HTML
32
+
33
+ AddType text/html html
34
+
31
35
# CSS
32
36
AddType text/css css
33
37
@@ -89,11 +93,12 @@ AddType application/xml xml
89
93
ExpiresByType application/x-gzip "access plus 0 seconds"
90
94
ExpiresByType application/x-bzip2 "access plus 0 seconds"
91
95
92
- # CSS, JavaScript
93
- <FilesMatch \.(css|js)$ >
96
+ # CSS, JavaScript, html
97
+ <FilesMatch \.(css|js|html )$ >
94
98
ExpiresDefault "access plus 1 year"
95
99
</FilesMatch >
96
100
ExpiresByType text/css "access plus 1 year"
101
+ ExpiresByType text/html "access plus 1 year"
97
102
ExpiresByType application/javascript "access plus 1 year"
98
103
99
104
# Favicon, images, flash
You can’t perform that action at this time.
0 commit comments