diff options
author | silverwind <me@silverwind.io> | 2022-08-23 14:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 20:58:04 +0800 |
commit | 56220515fc882943e366fafbce4d5b2b3ccee702 (patch) | |
tree | d64bffc3a9d13ce01bf56aedc896923aa4af0acf /templates/base/footer.tmpl | |
parent | 0a9ed54abbe8b6837dcb22a35b744c11f410421f (diff) | |
download | gitea-56220515fc882943e366fafbce4d5b2b3ccee702.tar.gz gitea-56220515fc882943e366fafbce4d5b2b3ccee702.zip |
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.
Diffstat (limited to 'templates/base/footer.tmpl')
-rw-r--r-- | templates/base/footer.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index 9bf16f8aa5..0e1b382d9d 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -22,7 +22,7 @@ <script src='https://hcaptcha.com/1/api.js' async></script> {{end}} {{end}} - <script src="{{AssetUrlPrefix}}/js/index.js?v={{MD5 AppVer}}" onerror="alert('Failed to load asset files from ' + this.src + ', please make sure the asset files can be accessed and the ROOT_URL setting in app.ini is correct.')"></script> + <script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + ', please make sure the asset files can be accessed and the ROOT_URL setting in app.ini is correct.')"></script> {{template "custom/footer" .}} </body> </html> |