Skip to content

Commit 2d006d8

Browse files
ENGCOM-7759: [vcl] don't explicitly hash the host header #28928
2 parents a4716ad + 69a0b41 commit 2d006d8

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ sub vcl_hash {
121121
hash_data(regsub(req.http.cookie, "^.*?X-Magento-Vary=([^;]+);*.*$", "\1"));
122122
}
123123

124-
# For multi site configurations to not cache each other's content
125-
if (req.http.host) {
126-
hash_data(req.http.host);
127-
} else {
128-
hash_data(server.ip);
129-
}
130-
131124
if (req.url ~ "/graphql") {
132125
call process_graphql_headers;
133126
}

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,6 @@ sub vcl_hash {
122122
hash_data(regsub(req.http.cookie, "^.*?X-Magento-Vary=([^;]+);*.*$", "\1"));
123123
}
124124

125-
# For multi site configurations to not cache each other's content
126-
if (req.http.host) {
127-
hash_data(req.http.host);
128-
} else {
129-
hash_data(server.ip);
130-
}
131-
132125
# To make sure http users don't see ssl warning
133126
if (req.http./* {{ ssl_offloaded_header }} */) {
134127
hash_data(req.http./* {{ ssl_offloaded_header }} */);

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ sub vcl_hash {
126126
hash_data(regsub(req.http.cookie, "^.*?X-Magento-Vary=([^;]+);*.*$", "\1"));
127127
}
128128

129-
# For multi site configurations to not cache each other's content
130-
if (req.http.host) {
131-
hash_data(req.http.host);
132-
} else {
133-
hash_data(server.ip);
134-
}
135-
136129
# To make sure http users don't see ssl warning
137130
if (req.http./* {{ ssl_offloaded_header }} */) {
138131
hash_data(req.http./* {{ ssl_offloaded_header }} */);

0 commit comments

Comments
 (0)