1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/routers/api/v1
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
misc Call MultipartForm.RemoveAll when request finishes (#19606) 2022-05-05 16:13:23 +02:00
notify Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2022-05-08 15:46:34 +02:00
org Add API to check if team has repo access (#19540) 2022-05-01 17:39:04 +02:00
packages Hide private repositories in packages (#19584) 2022-05-07 18:21:15 +02:00
repo Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
settings Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add API to query collaborators permission for a repository (#18761) 2022-04-29 14:24:38 +02:00
user Fix DELETE request for non-existent public key (#19443) 2022-04-21 03:08:30 +02:00
utils Use middleware to open gitRepo (#19559) 2022-04-30 16:32:01 +02:00
api.go Auto merge pull requests when all checks succeeded via API (#9307) 2022-05-08 01:05:52 +08:00
auth_windows.go Let web and API routes have different auth methods group (#19168) 2022-03-28 12:46:28 +08:00
auth.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00