Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00
forgejo/routers
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
..
api/v1 Ensure that rebase conflicts are handled in updates (#16952) 2021-09-05 10:30:40 +01:00
common Rename context.Query to context.Form (#16562) 2021-07-29 03:42:15 +02:00
install Allow setting X-FRAME-OPTIONS (#16643) 2021-08-06 16:47:10 -04:00
private Add bundle download for repository (#14538) 2021-08-24 11:47:09 -05:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Add Cache-Control to avatar redirects (#16973) 2021-09-06 23:05:44 +02:00
init.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00