forgejo/routers/web
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
..
admin Admin should not delete himself (#19423) 2022-05-08 21:22:55 +01:00
auth Federation: return useful statistic information for nodeinfo (#19561) 2022-05-02 21:35:45 +08:00
dev
events Improve Stopwatch behavior (#18930) 2022-04-25 22:45:22 +02:00
explore Remove RequireHighlightJS field, update plantuml example. (#19615) 2022-05-05 10:53:38 +03:00
feed
healthcheck Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00
misc
org
repo Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
user Hide private repositories in packages (#19584) 2022-05-07 18:21:15 +02:00
auth.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
auth_windows.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Allow to mark files in a PR as viewed (#19007) 2022-05-07 20:28:10 +02:00