Skip to content

Commit f59b93f

Browse files
author
Prabhu Ram
committed
Revert "MC-31987: Varnish graphql cache has to skip authenticated requests"
This reverts commit 187ac76.
1 parent 187ac76 commit f59b93f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sub vcl_recv {
109109
}
110110

111111
if (req.method == "GET" && req.url ~ "/graphql" && req.url ~ "query=") {
112-
# Authenticated customers should not be cached by default
112+
# Authentificated customers should not be cached by default
113113
if (req.http.Authorization ~ "^Bearer") {
114114
return (pass);
115115
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ sub vcl_recv {
110110
}
111111

112112
if (req.method == "GET" && req.url ~ "/graphql" && req.url ~ "query=") {
113-
# Authenticated customers should not be cached by default
113+
# Authentificated customers should not be cached by default
114114
if (req.http.Authorization ~ "^Bearer") {
115115
return (pass);
116116
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ sub vcl_recv {
110110
}
111111

112112
if (req.method == "GET" && req.url ~ "/graphql" && req.url ~ "query=") {
113-
# Authenticated customers should not be cached by default
113+
# Authentificated customers should not be cached by default
114114
if (req.http.Authorization ~ "^Bearer") {
115115
return (pass);
116116
}

vendor/.htaccess

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<IfVersion < 2.4>
2+
order allow,deny
3+
deny from all
4+
</IfVersion>
5+
<IfVersion >= 2.4>
6+
Require all denied
7+
</IfVersion>

0 commit comments

Comments
 (0)