diff options
author | silverwind <me@silverwind.io> | 2022-07-23 08:38:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 14:38:03 +0800 |
commit | 14178c56bb0fbc8b0b5820539e7681a7defeff47 (patch) | |
tree | 4da90c0d0761a1cf7a066738fc434b78ba02b33f /cmd | |
parent | d9608c4e76401ffdd5958e1944ba0a17ded825b9 (diff) | |
download | gitea-14178c56bb0fbc8b0b5820539e7681a7defeff47.tar.gz gitea-14178c56bb0fbc8b0b5820539e7681a7defeff47.zip |
Add Cache-Control header to html and api responses, add no-transform (#20432)
`no-transform` allegedly disables CloudFlare auto-minify and we did not
set caching headers on html or api requests, which seems good to have
regardless.
Transformation is still allowed for asset requests.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions