-
Notifications
You must be signed in to change notification settings - Fork 9.4k
x-magento-cache-debug: UNCACHEABLE Multi-store setup #39880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @WebHostingAce. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-November. Thank you for working on this issue.
|
The Varnish VCL provided in the Varnish Developer Portal (https://www.varnish-software.com/developers/tutorials/configuring-varnish-magento/) seems to be working as expected. After reviewing the available options, the vcl_backend_response hook has been selected for use, as it fits the current requirements and handles the desired functionality without any issues. Monitoring will continue for any potential improvements or changes moving forward. |
Hello @WebHostingAce , Thank you for your report and collaboration. We attempted to reproduce the issue in our latest version 2.4 develop but were unable to reproduce it. Please find the attached screenshot for reference. ![]() ![]() ![]() ![]() Steps to reproduce
We followed these steps and did not encounter any issues. Could you please recheck in the latest version of Magento and let us know if we are missing any steps to reproduce this issue? Therefore, we are marking this ticket as "Issue: Needs Update". Thank you! |
@engcom-November Thank you for the update. My setup is NGINX / Varnish / Apache Could you please try, #curl -I https://sub.domain.tld/ (to the Multi-Store) |
Hello @WebHostingAce , Thank you for report and Collaboration, We have verified this issue by setting up the NGINX and varnish, But we are unable to reproduce this issue, could you please recheck and let us know if your still facing the issue. ![]() ![]() ![]() Hence marking as "issue: Needs Update" Thank you |
@engcom-November Thank you very much. Lastly, could you please delete the all cookies for the subdomain (Multistore) and try again? If I refresh the browser, it works as expected. This issue only appears in the first load. Then the Multistores start working as expected. I have noticed, I get the X-Magento-Vary Cookie in the first load of the Multi-Store but not in the Main Domain which is working as expected. |
Preconditions and environment
Steps to reproduce
#curl -I https://sub.domain.tld (Multi-Store)
x-magento-cache-debug: UNCACHEABLE - Always
#curl -I https://domain.tld (Main)
x-magento-cache-debug: HIT
Expected result
#curl -I https://sub.domain.tld (Multi-Store)
x-magento-cache-debug: HIT or MISS - accordingly
Actual result
Any Multi-Store (setup with SetEnvIf) always produce "x-magento-cache-debug: UNCACHEABLE". This can be a subdomain or different domain other than the main domain.
Additional information
MAIN.cache_hit 66308 3.00 4.02 3.49 3.49 3.49
MAIN.cache_hit_grace 33 0.00 0.00 0.00 0.00 0.00
MAIN.cache_hitmiss 266315 9.99 16.14 13.28 13.28 13.28
MAIN.cache_miss 594774 22.98 36.04 29.15 29.15 29.15
MAIN.beresp_uncacheable 553526 23.98 33.54 25.66 25.66 25.66
without cache, browser will first return "x-magento-cache-debug: UNCACHEABLE" when refreshed, it will return HIT or MISS accordingly.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: