Skip to content

Include query string in cache key#38

Closed
jpb wants to merge 1 commit intonpm:latestfrom
unbounce:cache-key-query-string
Closed

Include query string in cache key#38
jpb wants to merge 1 commit intonpm:latestfrom
unbounce:cache-key-query-string

Conversation

@jpb
Copy link
Copy Markdown
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