From f0aaffeedccaa7b338af6cf72cef77895513c9f1 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 21 Nov 2019 21:06:23 +0100 Subject: Add USE_SERVICE_WORKER setting (#9110) * Add USE_SERVICE_WORKER setting This will be very useful setting for anyone doing frontend work. Fixes: https://github.com/go-gitea/gitea/issues/9044 * prevent potential syntax error on old browsers --- custom/conf/app.ini.sample | 2 ++ 1 file changed, 2 insertions(+) (limited to 'custom/conf') diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 53488dfd47..aa580e6a55 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -153,6 +153,8 @@ THEMES = gitea,arc-green DEFAULT_SHOW_FULL_NAME = false ; Whether to search within description at repository search on explore page. SEARCH_REPO_DESCRIPTION = true +; Whether to enable a Service Worker to cache frontend assets +USE_SERVICE_WORKER = true [ui.admin] ; Number of users that are displayed on one page -- cgit v1.2.3