Problem/Motivation
Since #2481453: Implement query parameter based content negotiation as alternative to extensions, any controller returning a render array may be rendered in multiple wrapper formats.
This means that the response for the controller varies by the 'url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT cache context.
Proposed resolution
Ensure that the 'url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT cache context is present for any response that is rendered by MainContentViewSubscriber, because MainContentViewSubscriber renders it in a different wrapper format depending on that URL query argument.
Remaining tasks
Review.
User interface changes
None.
API changes
None.
Data model changes
None.
Beta phase evaluation
| Issue category | Bug because this breaks cacheability of responses. |
|---|---|
| Issue priority | Major because it blocks significant other issues. |
| Prioritized changes | The main goal of this issue is performance/cacheability. |
| Disruption | Zero disruption. |