You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Then the template service worker puts these static files directly in a timestamp-named cache.
But to avoid reloading all my static files (especially my CSS framework in global.css) when a js file is updated, hashes of the static files are needed to detect when they are really modified.
Is it possible to modify files or to add an hashes named export to get an object like below?
Rather than making a separate map, can we just put the hashes in the filenames? That will allow the files to be cached by CDNs.
I raised an issue in the template to add hashes to the filenames and provided the code to do so there. If I don't hear any objections I'll send it as a PR.
Currently we can get
files
(an array of everything in thestatic
directory) by doing so:Then the template service worker puts these static files directly in a timestamp-named cache.
But to avoid reloading all my static files (especially my CSS framework in global.css) when a js file is updated, hashes of the static files are needed to detect when they are really modified.
Is it possible to modify
files
or to add anhashes
named export to get an object like below?It would really save unneeded reloads, meaning energy, and of course make the world a better place 😉
The text was updated successfully, but these errors were encountered: