1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
forgejo/routers
zeripath 9f5ddca57c
Set the LastModified header for raw files (#18356)
Although the use of LastModified dates for caching of git objects should be
discouraged (as it is not native to git - and there are a LOT of ways this
could be incorrect) - LastModified dates can be a helpful somewhat more human
way of caching for simple cases.

This PR adds this header and handles the If-Modified-Since header to the /raw/
routes.

Fix #18354

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
2022-05-09 17:54:51 +02:00
..
api Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
common Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
install Call MultipartForm.RemoveAll when request finishes (#19606) 2022-05-05 16:13:23 +02:00
private Use for a repo action one database transaction (#19576) 2022-05-03 21:46:28 +02:00
utils A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
web Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
init.go Move some helper files out of models (#19355) 2022-05-08 18:46:32 +02:00