File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
app/code/Magento/PageCache/etc Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,8 @@ sub vcl_hash {
123
123
hash_data (server.ip );
124
124
}
125
125
126
- if (req.http.Store ) {
127
- hash_data (req.http.Store );
128
- }
129
- if (req.http.Content-Currency ) {
130
- hash_data (req.http.Content-Currency );
126
+ if (req.url ~ " graphql" ) {
127
+ call process_graphql_headers;
131
128
}
132
129
133
130
# To make sure http users don't see ssl warning
@@ -137,6 +134,15 @@ sub vcl_hash {
137
134
/* {{ design_exceptions_code }} */
138
135
}
139
136
137
+ sub process_graphql_headers {
138
+ if (req.http.Store ) {
139
+ hash_data (req.http.Store );
140
+ }
141
+ if (req.http.Content-Currency ) {
142
+ hash_data (req.http.Content-Currency );
143
+ }
144
+ }
145
+
140
146
sub vcl_backend_response {
141
147
142
148
set beresp.grace = 3d ;
Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ sub vcl_hash {
130
130
}
131
131
/* {{ design_exceptions_code }} */
132
132
133
+ if (req.url ~ " graphql" ) {
134
+ call process_graphql_headers;
135
+ }
136
+ }
137
+
138
+ sub process_graphql_headers {
133
139
if (req.http.Store ) {
134
140
hash_data (req.http.Store );
135
141
}
You can’t perform that action at this time.
0 commit comments