Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
115 stars 70 forks source link

Use hashed filenames for assets to bypass browser cache #14040

Open mlqn opened 1 week ago

mlqn commented 1 week ago

Description

When we deploy a new version, it takes some time before our users see the updated version as our assets (js, css, images, etc.) keep the same filenames between releases and get cached by browsers. I suggest fixing this by adding a hash to the filenames generated by Webpack.

https://webpack.js.org/guides/caching/

mirkoSekulic commented 1 week ago

Since we're using .net 9 now in designer, it's possible that if vi migrate to new MapStaticAssets method, that we will solve the caching issues. Optimizations in serving static files could be found here