File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +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 );
114
+ }
115
+
111
116
return (hash );
112
117
}
113
118
@@ -123,7 +128,7 @@ sub vcl_hash {
123
128
hash_data (server.ip );
124
129
}
125
130
126
- if (req.url ~ " /graphql" ) {
131
+ if (req.method == " GET " && req. url ~ " /graphql" && req.url ~ " query= " ) {
127
132
call process_graphql_headers;
128
133
}
129
134
Original file line number Diff line number Diff line change @@ -109,6 +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 );
115
+ }
116
+
112
117
return (hash );
113
118
}
114
119
@@ -130,7 +135,7 @@ sub vcl_hash {
130
135
}
131
136
/* {{ design_exceptions_code }} */
132
137
133
- if (req.url ~ " /graphql" ) {
138
+ if (req.method == " GET " && req. url ~ " /graphql" && req.url ~ " query= " ) {
134
139
call process_graphql_headers;
135
140
}
136
141
}
Original file line number Diff line number Diff line change @@ -109,6 +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 );
115
+ }
116
+
112
117
return (hash );
113
118
}
114
119
@@ -130,7 +135,7 @@ sub vcl_hash {
130
135
}
131
136
/* {{ design_exceptions_code }} */
132
137
133
- if (req.url ~ " /graphql" ) {
138
+ if (req.method == " GET " && req. url ~ " /graphql" && req.url ~ " query= " ) {
134
139
call process_graphql_headers;
135
140
}
136
141
}
You can’t perform that action at this time.
0 commit comments