Skip to content

Commit ce1f702

Browse files
author
Prabhu Ram
committed
MC-31987: Varnish graphql cache has to skip authenticated requests
- review fix
1 parent de81e62 commit ce1f702

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ sub vcl_recv {
108108
#unset req.http.Cookie;
109109
}
110110

111-
# Authenticated graphQL customers should not be cached by default
111+
# Authenticated GraphQL requests should not be cached by default
112112
if (req.url ~ "/graphql" && req.http.Authorization ~ "^Bearer") {
113113
return (pass);
114114
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sub vcl_recv {
109109
#unset req.http.Cookie;
110110
}
111111

112-
# Authenticated graphQL customers should not be cached by default
112+
# Authenticated GraphQL requests should not be cached by default
113113
if (req.url ~ "/graphql" && req.http.Authorization ~ "^Bearer") {
114114
return (pass);
115115
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ sub vcl_recv {
109109
#unset req.http.Cookie;
110110
}
111111

112-
# Authenticated graphQL customers should not be cached by default
112+
# Authenticated GraphQL requests should not be cached by default
113113
if (req.url ~ "/graphql" && req.http.Authorization ~ "^Bearer") {
114114
return (pass);
115115
}

0 commit comments

Comments
 (0)