Open
Description
Preconditions and environment
- Magento version 2.4-develop
- When using varnish, x-magento-cache-debug header is always returned (see: https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/PageCache/etc/varnish7.vcl#L208) so I want to do the same feature for build-in cache.
- It will help debug cache status better on production environment without wasting time switching to develop mode
Steps to reproduce
- Enable production mode: bin/magento deploy:mode:set production
- Run: curl -I --location-trusted 'https://magento2.test/' | grep -i x-magento-cache-debug
Expected result
Return x-magento-cache-debug header data
Actual result
No return x-magento-cache-debug header data
Additional information
No response
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”.
Activity
m2-assistant commentedon Mar 12, 2025
Hi @rogerdz. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
[-]Need x-magento-cache-debug header for production mode use build-in cache[/-][+]Need x-magento-cache-debug header for production mode when use build-in cache[/+]m2-assistant commentedon Mar 13, 2025
Hi @engcom-November. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branchDetails
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced on 2.4.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
Issue: Confirmed
once verification is complete.engcom-November commentedon Mar 14, 2025
Hello @rogerdz
Thanks for your reporting and collaboration.
To proceed further marking this as feature request.
Thanks.