Skip to content
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

Sorted url query parameters for better caching support #69

Merged
merged 1 commit into from
May 9, 2024

Conversation

gajddo00
Copy link
Contributor

@gajddo00 gajddo00 commented May 8, 2024

Enhances the possibility for URL addresses to be cacheable.

@gajddo00 gajddo00 requested review from a team and matejmolnar and removed request for a team May 8, 2024 15:34
Copy link
Collaborator

@matejmolnar matejmolnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


I would just add that this change is necessary due to how CDNs work. Usually they determine whether to return a cached response for a request simply based on the url string comparison, which means that if you happen to switch the order of url parameters between requests it doesn't return the cached response.

@cejanen cejanen merged commit 5d7df2e into master May 9, 2024
4 checks passed
@cejanen cejanen deleted the feat/sorted-query-parameters branch May 9, 2024 09:12
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.

4 participants