diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-15 06:05:57 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-14 23:05:57 +0100 |
commit | 0be992a1e26f61a182113266a2eb34f77b87f9b4 (patch) | |
tree | b4fe2d2ccf4f7264c6e083375ec8cdf4a6ff5216 /custom | |
parent | b6ef539ef46b728736764899a05be8236ca0c306 (diff) | |
download | gitea-0be992a1e26f61a182113266a2eb34f77b87f9b4.tar.gz gitea-0be992a1e26f61a182113266a2eb34f77b87f9b4.zip |
Make static resouces web browser cache time customized on app.ini (#8442)
* make static resouces web browser cache time customized on app.ini
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-Authored-By: zeripath <art27@cantab.net>
* Update custom/conf/app.ini.sample
Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* fix docs
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.ini.sample | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 79d9960052..442ac4b5bb 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -243,6 +243,8 @@ LFS_CONTENT_PATH = data/lfs LFS_JWT_SECRET = ; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. LFS_HTTP_AUTH_EXPIRY = 20m +; Static resources, includes resources on custom/, public/ and all uploaded avatars web browser cache time, default is 6h +STATIC_CACHE_TIME = 6h ; Define allowed algorithms and their minimum key length (use -1 to disable a type) [ssh.minimum_key_sizes] |