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

Build in Force Cache Invalidation After Redeployment #181

Closed
niclasheun opened this issue Feb 14, 2025 · 1 comment · Fixed by #185
Closed

Build in Force Cache Invalidation After Redeployment #181

niclasheun opened this issue Feb 14, 2025 · 1 comment · Fixed by #185
Labels
bug Something isn't working

Comments

@niclasheun
Copy link
Contributor

Add 'hack' such that at redeployment, the browser cache is invalidated.

@niclasheun niclasheun added the bug Something isn't working label Feb 14, 2025
@niclasheun
Copy link
Contributor Author

After digging a bit into this topic:

  • All the 'usual' scripts, have already a "content-hash" in their file name. Hence, with each re-deploy this content hash changes and forces the browser to reload these files.
  • The issue is in the dynamically loaded models. These models rely on "remoteEntry.js" to have a fixed name. Hence, these do not have contenthash in them and are not invalidated after redeployment.

@niclasheun niclasheun linked a pull request Feb 16, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this to Done in PROMPT Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant