You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/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>
3 years ago
..
api Set the LastModified header for raw files (#18356) 3 years ago
common Set the LastModified header for raw files (#18356) 3 years ago
install Call MultipartForm.RemoveAll when request finishes (#19606) 3 years ago
private Use for a repo action one database transaction (#19576) 3 years ago
utils A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
web Set the LastModified header for raw files (#18356) 3 years ago
init.go Move some helper files out of models (#19355) 3 years ago