Skip to content

[5.x] Normalize query string when creating nocache session - #11545

Merged
jasonvarga merged 3 commits into
5.xfrom
fix/nocache-and-query-params
Oct 16, 2025
Merged

[5.x] Normalize query string when creating nocache session#11545
jasonvarga merged 3 commits into
5.xfrom
fix/nocache-and-query-params

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Mar 7, 2025

Copy link
Copy Markdown
Member

This pull request fixes an issue with the {{ nocache }} tag when used on a URL with "unsorted" query parameters, where the nocache regions wouldn't be returned after the inital page load.

We're already normalizing the query string before looking up a nocache session, just not when we create the nocache session.

Fixes #11543.

Comment thread tests/StaticCaching/NoCacheSessionTest.php Outdated
@duncanmcclean
duncanmcclean marked this pull request as ready for review March 7, 2025 11:27
@jasonvarga
jasonvarga merged commit ab793dd into 5.x Oct 16, 2025
46 of 47 checks passed
@jasonvarga
jasonvarga deleted the fix/nocache-and-query-params branch October 16, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nocache-Tags not being replaced sometimes when URL contains query parameters

2 participants