gitea/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 Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
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 Add `ContextUser` to http request context (#18798) 2022-03-26 17:04:22 +08:00
healthcheck Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00
misc Fix panic in team repos API (#19431) 2022-04-20 18:43:26 +08:00
org Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
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 Let web and API routes have different auth methods group (#19168) 2022-03-28 12:46:28 +08:00
base.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2022-04-01 16:47:50 +08:00
home.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
metrics.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
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