]> source.dussan.org Git - gitea.git/commit
Enable contenthash in filename for dynamic assets (#20813) (#20932)
authorsilverwind <me@silverwind.io>
Thu, 25 Aug 2022 06:16:20 +0000 (08:16 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Aug 2022 06:16:20 +0000 (07:16 +0100)
commit85f829fb3c631349ffc64d5f375e445b8855088c
treedf5a85848f5f20975ad264e02b0d3059610d2b27
parent5ebd26d306c59800699fe506ebe742b43345f715
Enable contenthash in filename for dynamic assets (#20813) (#20932)

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