File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ sub vcl_recv {
54
54
std.collect (req.http.Cookie );
55
55
56
56
# static files are always cacheable. remove SSL flag and cookie
57
- if (req.url ~ " ^/(pub/)?(media|static)/.*\.(png| jpg|jpeg|gif|css|js|swf|ico|woff| svg)$" ) {
57
+ if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|css|js| jpg|jpeg|png| gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg| svg|swf|woff|woff2|eot|ttf|otf )$" ) {
58
58
unset req.http.Https ;
59
59
unset req.http.Cookie ;
60
60
}
@@ -96,7 +96,7 @@ sub vcl_fetch {
96
96
# images, css and js are cacheable by default so we have to remove cookie also
97
97
if (beresp.ttl > 0s && (req.request == " GET" || req.request == " HEAD" )) {
98
98
unset beresp.http.set-cookie ;
99
- if (req.url !~ " \.(css|js|jpg|png|gif|tiff|bmp|gz|tgz|bz2|tbz| mp3|ogg|svg|swf|woff)(\?|$)" ) {
99
+ if (req.url !~ " \.(ico| css|js|jpg|jpeg| png|gif|tiff|bmp|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf )(\?|$)" ) {
100
100
set beresp.http.Pragma = " no-cache" ;
101
101
set beresp.http.Expires = " -1" ;
102
102
set beresp.http.Cache-Control = " no-store, no-cache, must-revalidate, max-age=0" ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ sub vcl_recv {
47
47
std.collect (req.http.Cookie );
48
48
49
49
# static files are always cacheable. remove SSL flag and cookie
50
- if (req.url ~ " ^/(pub/)?(media|static)/.*\.(png| jpg|jpeg|gif|css|js|swf|ico| woff|svg )$" ) {
50
+ if (req.url ~ " ^/(pub/)?(media|static)/.*\.(ico|css|js| jpg|jpeg|png| gif|tiff|bmp|mp3|ogg|svg|swf| woff|woff2|eot|ttf|otf )$" ) {
51
51
unset req.http.Https ;
52
52
unset req.http.Cookie ;
53
53
}
@@ -90,7 +90,7 @@ sub vcl_backend_response {
90
90
# images, css and js are cacheable by default so we have to remove cookie also
91
91
if (beresp.ttl > 0s && (bereq.method == " GET" || bereq.method == " HEAD" )) {
92
92
unset beresp.http.set-cookie ;
93
- if (bereq.url !~ " \.(css|js|jpg|png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff)(\?|$)" ) {
93
+ if (bereq.url !~ " \.(ico| css|js|jpg|jpeg| png|gif|tiff|bmp|gz|tgz|bz2|tbz|mp3|ogg|svg|swf|woff|woff2|eot|ttf|otf )(\?|$)" ) {
94
94
set beresp.http.Pragma = " no-cache" ;
95
95
set beresp.http.Expires = " -1" ;
96
96
set beresp.http.Cache-Control = " no-store, no-cache, must-revalidate, max-age=0" ;
You can’t perform that action at this time.
0 commit comments