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: Revert chunkFileNames to include hash #267

Merged
merged 2 commits into from
Aug 5, 2024
Merged

fix: Revert chunkFileNames to include hash #267

merged 2 commits into from
Aug 5, 2024

Conversation

juliusknorr
Copy link
Contributor

@juliusknorr juliusknorr commented Aug 1, 2024

Otherwise the browser cache is not refetching updated files.

I noticed after the upgrade on our instance today that the files app was having weired styles, only a force refresh helped. Not sure this has been exactly this issue, but as I talked with someone before (likely @susnux) I thought I'd open that PR.

@susnux
Copy link
Contributor

susnux commented Aug 2, 2024

Pro of this:

  • Simple
  • built-in cache buster

Con of this:

  • Much noise on the repo ("deleted foo-123.mjs" "added foo-456.mjs")

I can live with both and I fear that simply patching ?v=hash to the imports (really easy vite plugin) would not work as expected as we also need to patch the preload stuff...

lib/appConfig.ts Outdated Show resolved Hide resolved
lib/appConfig.ts Outdated Show resolved Hide resolved
lib/appConfig.ts Outdated Show resolved Hide resolved
lib/appConfig.ts Outdated Show resolved Hide resolved
@susnux susnux requested a review from ShGKme August 3, 2024 13:15
@susnux susnux added bug Something isn't working 3. to review Ready to review labels Aug 3, 2024
juliusknorr and others added 2 commits August 5, 2024 11:43
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit c241cc6 into main Aug 5, 2024
11 checks passed
@susnux susnux deleted the fix/chunk-hash branch August 5, 2024 09:47
@susnux
Copy link
Contributor

susnux commented Aug 5, 2024

/backport to stable1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants