forgejo/routers/api/v1/repo
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
..
blob.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
branch.go Don't error when branch's commit doesn't exist (#19547) 2022-04-29 16:44:40 +08:00
collaborators.go Add API to query collaborators permission for a repository (#18761) 2022-04-29 14:24:38 +02:00
commits.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 2022-04-25 20:45:18 +02:00
file.go Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
fork.go Make git.OpenRepository accept Context (#19260) 2022-03-30 03:13:41 +08:00
git_hook.go
git_ref.go
hook.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
hook_test.go
issue.go User specific repoID or xorm builder conditions for issue search (#19475) 2022-04-25 16:06:24 +02:00
issue_comment.go more context for models (#19511) 2022-04-28 13:48:48 +02:00
issue_label.go
issue_reaction.go Move reaction to models/issues/ (#19264) 2022-03-31 17:20:39 +08:00
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2022-05-08 15:46:34 +02:00
key.go
label.go Move init repository related functions to modules (#19159) 2022-03-29 15:23:45 +08:00
language.go Simplify loops to copy (#19569) 2022-05-01 01:53:56 +02:00
main_test.go Use queue instead of memory queue in webhook send service (#19390) 2022-04-25 20:03:01 +02:00
migrate.go Document 409 error returned by repos/migrate api (#19376) 2022-04-12 16:13:07 +08:00
milestone.go Move milestone to models/issues/ (#19278) 2022-04-08 17:11:15 +08:00
mirror.go An attempt to sync a non-mirror repo must give 400 (Bad Request) (#19300) 2022-04-01 14:29:57 -04:00
notes.go RepoAssignment ensure to close before overwrite (#19449) 2022-04-21 17:17:57 +02:00
patch.go Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
pull.go Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2022-05-08 15:46:34 +02:00
pull_review.go more context for models (#19511) 2022-04-28 13:48:48 +02:00
release.go
release_attachment.go
release_tags.go
repo.go more context for models (#19511) 2022-04-28 13:48:48 +02:00
repo_test.go
star.go
status.go
subscriber.go
tag.go
teams.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
topic.go
transfer.go Fix logging of Transfer API (#19456) 2022-04-22 00:05:53 +08:00
tree.go
wiki.go Make git.OpenRepository accept Context (#19260) 2022-03-30 03:13:41 +08:00