forgejo/routers/web
zeripath 9f5ddca57c
Set the LastModified header for raw files ()
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 

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 () 2022-05-08 21:22:55 +01:00
auth Federation: return useful statistic information for nodeinfo () 2022-05-02 21:35:45 +08:00
dev Move user related model into models/user () 2021-11-24 17:49:20 +08:00
events Improve Stopwatch behavior () 2022-04-25 22:45:22 +02:00
explore Remove RequireHighlightJS field, update plantuml example. () 2022-05-05 10:53:38 +03:00
feed Add ContextUser to http request context () 2022-03-26 17:04:22 +08:00
healthcheck Add health check endpoint () 2022-05-04 14:56:20 +03:00
misc Fix panic in team repos API () 2022-04-20 18:43:26 +08:00
org Never use /api/v1 from Gitea UI Pages () 2022-04-07 20:59:56 +02:00
repo Set the LastModified header for raw files () 2022-05-09 17:54:51 +02:00
user Hide private repositories in packages () 2022-05-07 18:21:15 +02:00
auth.go Remove legacy +build: constraint () 2022-05-02 23:22:45 +08:00
auth_windows.go Let web and API routes have different auth methods group () 2022-03-28 12:46:28 +08:00
base.go Update HTTP status codes to modern codes () 2022-03-23 12:54:07 +08:00
goget.go Refactor legacy unknwon/com package, improve golangci lint () 2022-04-01 16:47:50 +08:00
home.go Renamed ctx.User to ctx.Doer. () 2022-03-22 15:03:22 +08:00
metrics.go Update HTTP status codes to modern codes () 2022-03-23 12:54:07 +08:00
nodeinfo.go Add nodeinfo endpoint for federation purposes () 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory () 2021-06-09 01:33:54 +02:00
web.go Allow to mark files in a PR as viewed () 2022-05-07 20:28:10 +02:00