Skip to content

Commit dcb3c67

Browse files
made /pub/ optional for static content
1 parent 28daee5 commit dcb3c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageCache/etc/varnish.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ sub vcl_recv {
5454
std.collect(req.http.Cookie);
5555

5656
# static files are always cacheable. remove SSL flag and cookie
57-
if (req.url ~ "^/pub/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") {
57+
if (req.url ~ "^/(pub/)?(media|static)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico|woff|svg)$") {
5858
unset req.http.Https;
5959
unset req.http.Cookie;
6060
}

0 commit comments

Comments
 (0)