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

Include query string in cache key #38

Closed
wants to merge 1 commit into from
Closed

Include query string in cache key #38

wants to merge 1 commit into from

Conversation

jpb
Copy link
Contributor

@jpb jpb commented Aug 13, 2020

Include the URL's query string in the cache key. Not including the query component in the cache key can result in an ineffective cache or subtle bugs. The cache key for URLs that do not have a query component have not changed.

RFC 7234 states that "the primary cache key consists of the request method and target URI", the query component being part of this.

Fixes #7

@isaacs isaacs closed this in 785af65 Dec 8, 2020
isaacs pushed a commit that referenced this pull request Dec 8, 2020
PR-URL: #38
Credit: @jpb
Close: #38
Reviewed-by: @isaacs
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.

cache not working for URLs with params
1 participant