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

chore: cache bursting using version prefixes #116

Merged
merged 3 commits into from
Oct 31, 2023
Merged

chore: cache bursting using version prefixes #116

merged 3 commits into from
Oct 31, 2023

Conversation

abose
Copy link
Member

@abose abose commented Oct 31, 2023

When we install a version say 1.1.1, we usually set cache HTTP headers so that we cache the HTTP requests for a year.

So when we upgrade to v1.1.2, it may serve the old caches HTML files from the browser cache instead of the new files.
So to burst the cache, we prepend the version string to base URLs like http://localhost/v1.1.1/

@abose abose mentioned this pull request Oct 31, 2023
6 tasks
Copy link

sonarcloud bot commented Oct 31, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
12.2% 12.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@abose abose merged commit d50fb98 into main Oct 31, 2023
4 of 5 checks passed
@abose abose deleted the cach branch October 31, 2023 14:59
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.

1 participant