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.
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>
2 years ago
..
admin Admin should not delete himself (#19423) 2 years ago
misc Call MultipartForm.RemoveAll when request finishes (#19606) 2 years ago
notify Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2 years ago
org Add API to check if team has repo access (#19540) 2 years ago
packages Hide private repositories in packages (#19584) 2 years ago
repo Set the LastModified header for raw files (#18356) 2 years ago
settings Make mirror feature more configurable (#16957) 3 years ago
swagger Add API to query collaborators permission for a repository (#18761) 2 years ago
user Fix DELETE request for non-existent public key (#19443) 2 years ago
utils Use middleware to open gitRepo (#19559) 2 years ago
api.go Auto merge pull requests when all checks succeeded via API (#9307) 2 years ago
auth.go Remove legacy `+build:` constraint (#19582) 2 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 2 years ago