Skip to content

Commit

Permalink
Application JSON Requests Do Not Honor X-Magento-Vary Cookie fastly#730
Browse files Browse the repository at this point in the history
  • Loading branch information
kavingas authored Jan 7, 2025
1 parent 167c6ae commit 993a1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/vcl_snippets/fetch.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
if (req.http.graphql) {
set beresp.http.Vary:Store = "";
set beresp.http.Vary:Content-Currency = "";
} else if (beresp.http.Content-Type ~ "text/(html|xml)") {
} else if (beresp.http.Content-Type ~ "text/(html|xml)" || beresp.http.Content-Type ~ "application/json") {
set beresp.http.Vary:X-Magento-Vary = "";
set beresp.http.Vary:Https = "";
}
Expand Down

0 comments on commit 993a1e3

Please sign in to comment.