]> source.dussan.org Git - gitea.git/commit
Add ETag header (#15370)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Mon, 12 Apr 2021 14:49:26 +0000 (16:49 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Apr 2021 14:49:26 +0000 (10:49 -0400)
commita35a5b225c6f49a91459ae3e9e97d0ad6a7c16bd
tree0f31bd0eb9ef1972c5049fc173db974b46e41fe3
parent6d2866f20c7ba725a02d8ecdd42810291ef4f97c
Add ETag header (#15370)

* Add ETag header.

* Comply with RFC 7232.

* Moved logic into httpcache.go

* Changed name.

* Lint

* Implemented If-None-Match list.

* Fixed missing header on *

* Removed weak etag support.

* Removed * support.

* Added unit test.

* Lint

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/httpcache/httpcache.go
modules/httpcache/httpcache_test.go [new file with mode: 0644]
modules/public/public.go
routers/repo/attachment.go
routers/repo/download.go