]> source.dussan.org Git - gitea.git/commit
Add ETag header (#15370) (#15552)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Tue, 20 Apr 2021 16:01:58 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Apr 2021 16:01:58 +0000 (12:01 -0400)
commit5da024a01908fe0548f9bc91d4af0e0a8d94faf4
tree7264e4d2764f46cdc19920a52156a3f793d676fc
parenteff2499be7202e8328c451fc41a630ab62d08ebd
Add ETag header (#15370) (#15552)

* 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>
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