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/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>
3 years ago
..
admin Admin should not delete himself (#19423) 3 years ago
auth Federation: return useful statistic information for nodeinfo (#19561) 3 years ago
dev Move user related model into models/user (#17781) 3 years ago
events Improve Stopwatch behavior (#18930) 3 years ago
explore Remove `RequireHighlightJS` field, update plantuml example. (#19615) 3 years ago
feed Add `ContextUser` to http request context (#18798) 3 years ago
healthcheck Add health check endpoint (#18465) 3 years ago
misc Fix panic in team repos API (#19431) 3 years ago
org Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
repo Set the LastModified header for raw files (#18356) 3 years ago
user Hide private repositories in packages (#19584) 3 years ago
auth.go Remove legacy `+build:` constraint (#19582) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago
base.go Update HTTP status codes to modern codes (#18063) 3 years ago
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
home.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
metrics.go Update HTTP status codes to modern codes (#18063) 3 years ago
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 3 years ago
swagger_json.go Refactor routers directory (#15800) 4 years ago
web.go Allow to mark files in a PR as viewed (#19007) 3 years ago