From 993a1e38d7cb819cbcd02fd3fca7a7c735616740 Mon Sep 17 00:00:00 2001 From: Gihan Kavinga <57118500+kavingas@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:33:59 +1100 Subject: [PATCH] Application JSON Requests Do Not Honor X-Magento-Vary Cookie #730 https://github.com/fastly/fastly-magento2/issues/730 --- etc/vcl_snippets/fetch.vcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/vcl_snippets/fetch.vcl b/etc/vcl_snippets/fetch.vcl index ebd2fed5..a2940298 100644 --- a/etc/vcl_snippets/fetch.vcl +++ b/etc/vcl_snippets/fetch.vcl @@ -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 = ""; }