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

Ensure new front-end code is picked up by browsers after a release #255

Open
rogup opened this issue Jun 7, 2024 · 0 comments
Open

Ensure new front-end code is picked up by browsers after a release #255

rogup opened this issue Jun 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rogup
Copy link
Contributor

rogup commented Jun 7, 2024

Once new code has been deployed to a server, browsers need to hit that server to grab the site and its assets. This can be time consuming, so browsers often keep using cached old code. This can lead to bugs, if the old front-end code doesn't match with new assets, as @ColmDC has experienced.

We fixed the same problem on LX by improving the webpack config to use hashes in filenames. See DigitalCommons/land-explorer-front-end#220

The fix is small and easy.

@rogup rogup added the bug Something isn't working label Jun 7, 2024
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
None yet
Development

No branches or pull requests

1 participant