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

Fix browser cache issues when upgrading #3683

Merged
merged 3 commits into from Oct 19, 2023
Merged

Conversation

benjaminpkane
Copy link
Contributor

I would like to test the upgrade process between the last two releases to confirm the issue, but based on user reports, it seems that an App bug is often encountered after upgrading because the browser is using the cached version from the previously installed release.

This change ensures the current index.html file is always returned which will load the correct App assets.

@benjaminpkane benjaminpkane added bug Bug fixes app Issues related to App features labels Oct 18, 2023
@benjaminpkane benjaminpkane self-assigned this Oct 18, 2023
@benjaminpkane
Copy link
Contributor Author

I've tested on starlette 0.24 which is the minimum version requirement, and the change works.

Note this only adds the Cache-Control no-store response header only for the index.html response. All other App assets take advantage of caching.

Copy link
Contributor

@imanjra imanjra left a comment

Choose a reason for hiding this comment

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

NIce! LGTM

@benjaminpkane benjaminpkane merged commit c111706 into release/v0.22.2 Oct 19, 2023
9 checks passed
@benjaminpkane benjaminpkane deleted the bug/no-cache branch October 19, 2023 17:08
@benjaminpkane benjaminpkane mentioned this pull request Oct 24, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Issues related to App features bug Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants