]> source.dussan.org Git - gitea.git/commit
Enable contenthash in filename for dynamic assets (#20813)
authorsilverwind <me@silverwind.io>
Tue, 23 Aug 2022 12:58:04 +0000 (14:58 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 12:58:04 +0000 (20:58 +0800)
commit56220515fc882943e366fafbce4d5b2b3ccee702
treed64bffc3a9d13ce01bf56aedc896923aa4af0acf
parent0a9ed54abbe8b6837dcb22a35b744c11f410421f
Enable contenthash in filename for dynamic assets (#20813)

This should solve the main problem of dynamic assets getting stale after
a version upgrade. Everything not affected will use query-string based
cache busting, which includes files loaded via HTML or worker scripts.
15 files changed:
jest.config.js
modules/setting/setting.go
modules/templates/helper.go
package-lock.json
package.json
templates/base/footer.tmpl
templates/base/head.tmpl
templates/base/head_script.tmpl
templates/swagger/ui.tmpl
web_src/js/features/notification.js
web_src/js/features/serviceworker.js
web_src/js/features/stopwatch.js
web_src/js/utils.js
web_src/js/utils.test.js
webpack.config.js