-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 FPC Accepts non text/html, Serves Cache Hit as text/html #3845
Comments
That's a pretty clear bug. |
Created bug MAGETWO-50710 for internal tracking |
Any update/ETA on this? It's causing a real world problem for an extension/theme developer who's migrating their theme to Magento 2. |
Any update/ETA on this? It's causing a real world problem for an extension/theme developer who's migrating their theme to Magento 2. /cc @piotrekkaminski |
@choukalos Can you update this issue? Jira shows as closed now but unsure when that ticket will be released (2.1 or earlier in a patch). |
The issue looks fixed in internal repository and should be available already in 2.1rc versions. |
[tango] MAGETWO-98409: Config:set command failed for path bigger than 3 depth
The default full page cache (FPC) implementation will cache content with non html
Content-Type
headers (text/css, application/javascript, etc), and then re-serve the content as text/html. This can cause unstable and unacceptable application behavior. For example, Google Chrome will not render CSS files served with a text/html header.This is not a theoretical problem. It was encountered when converting an business critical feature for a popular Magento 1 theme to a Magento 2 theme. While suggestions for better coding practices are appreciated, the shipping full page cache engine should not ship with functionality that's broken.
Possible fixes include ensuring the FPC engine skips caching non text/html content, or ensuring the FPC engine preserves header. This is a decision that needs to be made by the Magento core engineering team as it has long term implications for the behavior of the platform.
Steps to reproduce
develop
branch.System -> Cache Management
)
Expected result
text/css
Content-Type: headerActual result
text/html
headerCurl output below
The text was updated successfully, but these errors were encountered: