0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 15:05:35 +01:00
gitea/modules
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
..
activitypub
analyze Simplify IsVendor (#19626) 2022-05-06 10:12:30 +01:00
appstate
auth Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
avatar Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
base
cache Add health check endpoint (#18465) 2022-05-04 14:56:20 +03:00
charset
container
context Repository level enable package or disable (#19323) 2022-05-08 17:51:50 +02:00
convert Hide private repositories in packages (#19584) 2022-05-07 18:21:15 +02:00
csv
doctor
emoji
eventsource
generate
git Allow custom default merge message with .gitea/default_merge_message/<merge_style>_TEMPLATE.md (#18177) 2022-05-08 20:32:45 +08:00
gitgraph
graceful Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
hcaptcha
highlight
hostmatcher
httpcache Set the LastModified header for raw files (#18356) 2022-05-09 17:54:51 +02:00
httplib
indexer
json
lfs Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
log Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal (#19581) 2022-05-03 18:03:34 +02:00
markup
metrics
migration Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
nosql
notification Hide private repositories in packages (#19584) 2022-05-07 18:21:15 +02:00
options Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
packages
paginator
password
pprof
private
process
proxy
public Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
queue
recaptcha
references
repository Move some helper files out of models (#19355) 2022-05-08 18:46:32 +02:00
secret
session
setting Repository level enable package or disable (#19323) 2022-05-08 17:51:50 +02:00
ssh
storage
structs
svg Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
sync
templates Calculate filename hash only once (#19654) 2022-05-09 00:29:50 +02:00
test Call MultipartForm.RemoveAll when request finishes (#19606) 2022-05-05 16:13:23 +02:00
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
web