mozilla / glam

Mozilla's primary interactive dashboard for examining the distribution of telemetry values.
https://glam.telemetry.mozilla.org
Mozilla Public License 2.0
21 stars 23 forks source link

Use hashed files for static assets for cache busting #435

Open robhudson opened 4 years ago

rafrombrc commented 3 years ago

When GLAM is deployed, there may be changes to the static bundle file that contains all of the svelte assets. Right now, the file name stays the same, so new requests might use an older, cached version of this instead of the updated one. Ideally, this file would change names with every release to ensure the browser downloads the new version. As of a year ago, svelte didn't have an easy way to do this, but that might have improved by now.