-
Notifications
You must be signed in to change notification settings - Fork 621
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
Improve cache busting via Refresh button #6756
Conversation
rankings this fixes an issue with character parses for awakened raids, which do not include the awakened ranks in the "All" partition that is selected by default
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/common/fetchWclApi.ts
Did you find this useful? React with a 👍 or 👎 |
} | ||
|
||
const ZONES: Zone[] = [ | ||
{ | ||
id: 31, | ||
name: 'Vault of the Incarnates', | ||
frozen: false, | ||
partition: 4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Back to partitions mattering! Woo!
* use `cache` param instead of query param to skip cache * support setting specific partitions for zones when loading character rankings this fixes an issue with character parses for awakened raids, which do not include the awakened ranks in the "All" partition that is selected by default * changelog entry
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Part of the v2 server migration greatly improved the use of caching and cache-control headers on the server. This had the side-effect of revealing some issues with our cache-busting method. Specifically: if you bust the cache by setting a query param, the new response is stored under a new URL. But when you refresh the page the old response under the old URL is read.
This PR changes the cache-busting method to use the
cache-control
header via thecache
parameter offetch
. When set toreload
, the behavior is:per MDN.
While I was working on this, I realized that we can't retrieve Awakened parses on the character parses page due to how the partitions are set up on WCL. I worked around it since we don't really support old seasons' logs anyway.
This requires this PR on the backend.