diff options
author | silverwind <me@silverwind.io> | 2023-05-31 04:07:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 02:07:04 +0000 |
commit | 50bd7d0b24016b0cf48dfbafe84b5953fe20c34f (patch) | |
tree | af5df7c26729ada5dbf27ba9d6b970bac35b49bc /modules/setting | |
parent | 28a89e360f720c5ca7fb71319beb2519adad5972 (diff) | |
download | gitea-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 'modules/setting')
-rw-r--r-- | modules/setting/ui.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/setting/ui.go b/modules/setting/ui.go index aa2c64019b..41438db40d 100644 --- a/modules/setting/ui.go +++ b/modules/setting/ui.go @@ -32,7 +32,6 @@ var UI = struct { CustomEmojis []string CustomEmojisMap map[string]string `ini:"-"` SearchRepoDescription bool - UseServiceWorker bool OnlyShowRelevantRepos bool Notification struct { @@ -136,7 +135,6 @@ func loadUIFrom(rootCfg ConfigProvider) { UI.ShowUserEmail = sec.Key("SHOW_USER_EMAIL").MustBool(true) UI.DefaultShowFullName = sec.Key("DEFAULT_SHOW_FULL_NAME").MustBool(false) UI.SearchRepoDescription = sec.Key("SEARCH_REPO_DESCRIPTION").MustBool(true) - UI.UseServiceWorker = sec.Key("USE_SERVICE_WORKER").MustBool(false) // OnlyShowRelevantRepos=false is important for many private/enterprise instances, // because many private repositories do not have "description/topic", users just want to search by their names. |