File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,11 @@ sub vcl_recv {
108
108
#unset req.http.Cookie;
109
109
}
110
110
111
- if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" && req.http.Authorization ~ " ^Bearer" ) {
112
- # Authentificated customers should not be cached by default
113
- return (pass );
111
+ if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" ) {
112
+ # Authentificated customers should not be cached by default
113
+ if (req.http.Authorization ~ " ^Bearer" ) {
114
+ return (pass );
115
+ }
114
116
}
115
117
116
118
return (hash );
Original file line number Diff line number Diff line change @@ -109,9 +109,11 @@ sub vcl_recv {
109
109
#unset req.http.Cookie;
110
110
}
111
111
112
- if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" && req.http.Authorization ~ " ^Bearer" ) {
113
- # Authentificated customers should not be cached by default
114
- return (pass );
112
+ if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" ) {
113
+ # Authentificated customers should not be cached by default
114
+ if (req.http.Authorization ~ " ^Bearer" ) {
115
+ return (pass );
116
+ }
115
117
}
116
118
117
119
return (hash );
Original file line number Diff line number Diff line change @@ -109,9 +109,11 @@ sub vcl_recv {
109
109
#unset req.http.Cookie;
110
110
}
111
111
112
- if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" && req.http.Authorization ~ " ^Bearer " ) {
112
+ if (req.method == " GET" && req.url ~ " /graphql" && req.url ~ " query=" ) {
113
113
# Authentificated customers should not be cached by default
114
- return (pass );
114
+ if (req.http.Authorization ~ " ^Bearer" ) {
115
+ return (pass );
116
+ }
115
117
}
116
118
117
119
return (hash );
You can’t perform that action at this time.
0 commit comments