1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
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
..
2021-01-26 16:36:53 +01:00
2022-05-01 01:53:56 +02:00
2022-04-28 13:48:48 +02:00
2022-03-22 15:03:22 +08:00
2022-03-22 15:03:22 +08:00
2021-12-12 23:48:20 +08:00