]> Untitled Git - lemmy.git/commit
Add http cache for webfingers (#3317)
authorcetra3 <cetra3@hotmail.com>
Wed, 19 Jul 2023 10:09:04 +0000 (19:39 +0930)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 10:09:04 +0000 (06:09 -0400)
commit1f21bdb2f920fc638b8581bb1a89af0c066e0874
tree34b66cd5da06560c11e21d1fc2646badd7fe200f
parent2adf7d500875e4472ccc5362943bcd77f5897e3c
Add http cache for webfingers (#3317)

* Add http cache for webfingers

* Remove the outgoing cache middleware & adjust the cache headers directive

* Use 1h & 3day cache header

* Update routes and adjust the cache headers location

* revert apub caching

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
crates/routes/src/feeds.rs
crates/routes/src/nodeinfo.rs
crates/routes/src/webfinger.rs
crates/utils/src/cache_header.rs [new file with mode: 0644]
crates/utils/src/lib.rs