From dcb3c67fdeca0007d913c558bcbc6bf19e942281 Mon Sep 17 00:00:00 2001 From: PhoenixPM - BK Date: Wed, 21 Jan 2015 17:30:08 +0100 Subject: [PATCH] made /pub/ optional for static content --- app/code/Magento/PageCache/etc/varnish.vcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/PageCache/etc/varnish.vcl b/app/code/Magento/PageCache/etc/varnish.vcl index 7de5e31ae846f..2b90ee0e3ef14 100644 --- a/app/code/Magento/PageCache/etc/varnish.vcl +++ b/app/code/Magento/PageCache/etc/varnish.vcl @@ -54,7 +54,7 @@ sub vcl_recv { std.collect(req.http.Cookie); # static files are always cacheable. remove SSL flag and cookie - if (req.url ~ "^/pub/.*\.(png|jpg|jpeg|gif|css|js|swf|ico)$") { + if (req.url ~ "^/(pub/)?(media|static)/.*\.(png|jpg|jpeg|gif|css|js|swf|ico|woff|svg)$") { unset req.http.Https; unset req.http.Cookie; }