aboutsummaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-02-26 11:14:23 +0100
committerGitHub <noreply@github.com>2022-02-26 18:14:23 +0800
commitfa0e2d60c2f3ad4ca34230392513298bf433cf92 (patch)
treee1d304f872d31756a6f8c4a9a587595d94df26cb /custom
parent5b0cdd615567e49766fc7451cae84da17e152cea (diff)
downloadgitea-fa0e2d60c2f3ad4ca34230392513298bf433cf92.tar.gz
gitea-fa0e2d60c2f3ad4ca34230392513298bf433cf92.zip
Disable service worker by default (#18914)
The service worker causes a lot of issues with JS errors after instance upgrades while not bringing any real performance gain over regular HTTP caching. Disable it by default for this reason. Maybe later we can remove it completely, as I simply see no benefit in having it.
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 26de6dcd80..a48c41909e 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1115,7 +1115,7 @@ PATH =
;SEARCH_REPO_DESCRIPTION = true
;;
;; Whether to enable a Service Worker to cache frontend assets
-;USE_SERVICE_WORKER = true
+;USE_SERVICE_WORKER = false
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;