aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-31 04:07:04 +0200
committerGitHub <noreply@github.com>2023-05-31 02:07:04 +0000
commit50bd7d0b24016b0cf48dfbafe84b5953fe20c34f (patch)
treeaf5df7c26729ada5dbf27ba9d6b970bac35b49bc /templates
parent28a89e360f720c5ca7fb71319beb2519adad5972 (diff)
downloadgitea-50bd7d0b24016b0cf48dfbafe84b5953fe20c34f.tar.gz
gitea-50bd7d0b24016b0cf48dfbafe84b5953fe20c34f.zip
Remove the service worker (#25010)
It's been disabled by default since 1.17 (https://github.com/go-gitea/gitea/pull/18914), and it never really delivered any benefit except being another cache layer that has its own unsolved invalidation issues. HTTP cache works, we don't need two cache layers at the browser for assets. ## :warning: BREAKING You can remove the config `[ui].USE_SERVICE_WORKER` from your `app.ini` now.
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head_script.tmpl1
1 files changed, 0 insertions, 1 deletions
diff --git a/templates/base/head_script.tmpl b/templates/base/head_script.tmpl
index 670d146b56..4e1dffa474 100644
--- a/templates/base/head_script.tmpl
+++ b/templates/base/head_script.tmpl
@@ -12,7 +12,6 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
assetUrlPrefix: '{{AssetUrlPrefix}}',
runModeIsProd: {{.RunModeIsProd}},
customEmojis: {{CustomEmojis}},
- useServiceWorker: {{UseServiceWorker}},
csrfToken: '{{.CsrfToken}}',
pageData: {{.PageData}},
notificationSettings: {{NotificationSettings}}, {{/*a map provided by NewFuncMap in helper.go*/}}