File tree Expand file tree Collapse file tree 3 files changed +0
-45
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 3 files changed +0
-45
lines changed Original file line number Diff line number Diff line change @@ -76,21 +76,6 @@ sub vcl_recv {
76
76
# collect all cookies
77
77
std.collect (req.http.Cookie );
78
78
79
- # Compression filter. See https://www.varnish-cache.org/trac/wiki/FAQ/Compression
80
- if (req.http.Accept-Encoding ) {
81
- if (req.url ~ " \.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$" ) {
82
- # No point in compressing these
83
- unset req.http.Accept-Encoding ;
84
- } elsif (req.http.Accept-Encoding ~ " gzip" ) {
85
- set req.http.Accept-Encoding = " gzip" ;
86
- } elsif (req.http.Accept-Encoding ~ " deflate" && req.http.user-agent !~ " MSIE" ) {
87
- set req.http.Accept-Encoding = " deflate" ;
88
- } else {
89
- # unknown algorithm
90
- unset req.http.Accept-Encoding ;
91
- }
92
- }
93
-
94
79
# Remove all marketing get parameters to minimize the cache objects
95
80
if (req.url ~ " (\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=" ) {
96
81
set req.url = regsuball (req.url , " (gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?" , " " );
Original file line number Diff line number Diff line change @@ -77,21 +77,6 @@ sub vcl_recv {
77
77
# collect all cookies
78
78
std.collect (req.http.Cookie );
79
79
80
- # Compression filter. See https://www.varnish-cache.org/trac/wiki/FAQ/Compression
81
- if (req.http.Accept-Encoding ) {
82
- if (req.url ~ " \.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$" ) {
83
- # No point in compressing these
84
- unset req.http.Accept-Encoding ;
85
- } elsif (req.http.Accept-Encoding ~ " gzip" ) {
86
- set req.http.Accept-Encoding = " gzip" ;
87
- } elsif (req.http.Accept-Encoding ~ " deflate" && req.http.user-agent !~ " MSIE" ) {
88
- set req.http.Accept-Encoding = " deflate" ;
89
- } else {
90
- # unknown algorithm
91
- unset req.http.Accept-Encoding ;
92
- }
93
- }
94
-
95
80
# Remove all marketing get parameters to minimize the cache objects
96
81
if (req.url ~ " (\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=" ) {
97
82
set req.url = regsuball (req.url , " (gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?" , " " );
Original file line number Diff line number Diff line change @@ -81,21 +81,6 @@ sub vcl_recv {
81
81
# collect all cookies
82
82
std.collect (req.http.Cookie );
83
83
84
- # Compression filter. See https://www.varnish-cache.org/trac/wiki/FAQ/Compression
85
- if (req.http.Accept-Encoding ) {
86
- if (req.url ~ " \.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$" ) {
87
- # No point in compressing these
88
- unset req.http.Accept-Encoding ;
89
- } elsif (req.http.Accept-Encoding ~ " gzip" ) {
90
- set req.http.Accept-Encoding = " gzip" ;
91
- } elsif (req.http.Accept-Encoding ~ " deflate" && req.http.user-agent !~ " MSIE" ) {
92
- set req.http.Accept-Encoding = " deflate" ;
93
- } else {
94
- # unknown algorithm
95
- unset req.http.Accept-Encoding ;
96
- }
97
- }
98
-
99
84
# Remove all marketing get parameters to minimize the cache objects
100
85
if (req.url ~ " (\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=" ) {
101
86
set req.url = regsuball (req.url , " (gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?" , " " );
You can’t perform that action at this time.
0 commit comments