1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/web/user
silverwind 9fa6bdb64e
Add Cache-Control to avatar redirects (#16973)
* Add Cache-Control to avatar redirects

This does seem to do the trick to make the Avatar redirects cachable
in Chrome.

In Firefox, it does not seem to work, thought and I found no way to
suppress the requests to the original URLs, I even tried setting an
Etag to no avail.

Related discussion in https://github.com/go-gitea/gitea/issues/16964.

Co-authored-by: zeripath <art27@cantab.net>
2021-09-06 23:05:44 +02:00
..
setting Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
auth_openid.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
auth.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
avatar.go Add Cache-Control to avatar redirects (#16973) 2021-09-06 23:05:44 +02:00
home_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home.go Correctly return the number of Repositories for Organizations (#16807) 2021-09-01 01:31:42 -04:00
main_test.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
notification.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
oauth_test.go Decoupled code from DefaultSigningKey (#16743) 2021-08-27 20:28:00 +01:00
oauth.go Decoupled code from DefaultSigningKey (#16743) 2021-08-27 20:28:00 +01:00
profile.go In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
task.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00