DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

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

Open rogup opened 1 month ago

rogup commented 1 month ago

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 https://github.com/DigitalCommons/land-explorer-front-end/pull/220

The fix is small and easy.