Description
Preconditions and environment
Magento ver. 2.4.6-p1
Steps to reproduce
I have a store with 2 languages, each with a separate URL.
Shop -> Web (default) www.example-deutsch.de
Shop -> Web (english) www.example-english.com
The varnish cache is installed and works in the store standard
Answer header store standard
Accept Ranges: bytes
Cache control: no-store, no-cache, must-revalidate, max-age=0
Content encoding: gzip
Content Length: 21909
Content type: text/html; charset=UTF-8
Date: Thu, 27 Jul 2023 11:35:21 GMT
Expires: -1
Grace: none
Pragma: no cache
Server: nginx
Strict Transport Security: max-age=15768000; includeSubDomains
Vary: Accept Encoding
X-Content-Type-Options: nosniff
X-Frame Options: SAMEORIGIN
X-Frame Options: SAMEORIGIN
X Magento Cache Debug: HIT
X-Ua-Compatible: IE=edge
X-Xss Protection: 1; mode=block
If you switch to the Url in english, the Answer Header looks different and the Varnish does not cache the pages either.
Answer header store english
Cache-Control:vmax-age=604800, public, s-maxage=604800
Content encoding:vgzip
Content Length:v21911
Content type:
text/html; charset=UTF-8
dates:
Thu, 27 Jul 2023 11:33:31 GMT
expires:
Thu, 03 Aug 2023 11:33:30 GMT
Link:
</static/version1690280872/_cache/merged/ee58eeb0a3da40bc494f0b1e16c0eedb.min.js>; rel=preload; as=script, </static/version1690280872/_cache/merged/a34774681846944110ee92bbd585d45b.min.css>; rel=preload; as=style, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/css/styles-l.min.css>; rel=preload; as=style, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/css/print.min.css>; rel=preload; as=style, </static/version1690280872/_cache/merged/fonts_a34774681846944110ee92bbd585d45b.min.css>; rel=preload; as=style, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/fonts/opensans/light/opensans-300.woff2>; rel=preload; as=font; crossorigin=anonymous, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/fonts/opensans/regular/opensans-400.woff2>; rel=preload; as=font; crossorigin=anonymous, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/fonts/opensans/semibold/opensans-600.woff2>; rel=preload; as=font; crossorigin=anonymous, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/fonts/opensans/bold/opensans-700.woff2>; rel=preload; as=font; crossorigin=anonymous, </static/version1690280872/frontend/Saitenhandel/saitenhandel/en_US/fonts/Luma-Icons.woff2>; rel=preload; as=font; crossorigin=anonymous
Pragma: cache
Server: nginx
Vary: Accept Encoding
X-Content-Type-Options: nosniff
X-Frame Options: SAMEORIGIN
X-Frame Options: SAMEORIGIN
X Magento Tags:
cat_c,cat_c_6,cat_c_239,cat_c_316,cat_c_272,cat_c_275,cat_c_305,cat_c_327,store,cms_b,mp_smtp_script,cms_b_30,cms_b_31,cms_b_footer_about_us,cms_b_footer_information,cms_b_footer_price,cm s_b_footer_since,cms_p_20
X-Powered-By: PHP/8.1.21
X-Ua-Compatible: IE=edge
X-Xss Protection: 1; mode=block
Expected result
Varnish is also available for second URL and language.
Actual result
Varnish is not available for secondURL and language
Additional information
I use the default.vcl which magento generates itself.
It looks like the varnish isn't enabled for the second URL.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.