-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Default V6 VCL Template Logic #36492
Comments
Hi @icecactus. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 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. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
I think your remark makes sense. @gquintard what do you think? |
indeed, that should have been
|
❌ Something went wrong. Cannot create Jira issue. |
❌ Something went wrong. Cannot create Jira issue. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-10944 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Echo. Thank you for verifying the issue. |
Preconditions and environment
v2.4.5
Steps to reproduce
Navigate to a page that does a 301 redirect or has "private" in cache-control header with a status code of 200.
Expected result
I would think anything (200, 404, 301 etc) that has "private" in Cache-Control header would not get cached.
Actual result
https status 200 with private in Cache-Control header is now cached and a 301 is also now cached unless it has private in Cache-Control header.
Additional information
From #6150231 File: app/code/Magento/PageCache/etc/varnish6.vcl
Previous versions of generated VCL
New V6 generated VCL
The logic changed on v6. Perhaps I misunderstand but shouldn't it be
if ((beresp.status != 200 && beresp.status != 404) || (beresp.http.Cache-Control ~ "private")) {
Im running into an issue with a 3rd party module where it no longer works correctly due to this change.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: