summaryrefslogtreecommitdiffstats
path: root/snap
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-05-09 16:54:51 +0100
committerGitHub <noreply@github.com>2022-05-09 17:54:51 +0200
commit9f5ddca57c38f566fb18c9add339fc9f5aeb25de (patch)
treee9cba2540901589f98410b7d3ad23078a7dff11b /snap
parente435283c0ffe437f35898f92dc5572c8df83163e (diff)
downloadgitea-9f5ddca57c38f566fb18c9add339fc9f5aeb25de.tar.gz
gitea-9f5ddca57c38f566fb18c9add339fc9f5aeb25de.zip
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>
Diffstat (limited to 'snap')
0 files changed, 0 insertions, 0 deletions