mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Add Cache-Control header to media endpoints (#2612)
* Add Cache-Control header * Raise rate_limiting threshold to 20
This commit is contained in:
parent
df5d4dc7a3
commit
ac2dbb3513
3 changed files with 5 additions and 2 deletions
|
@ -149,6 +149,9 @@ func makeDownloadAPI(
|
|||
}
|
||||
}
|
||||
|
||||
// Cache media for at least one day.
|
||||
w.Header().Set("Cache-Control", "public,max-age=86400,s-maxage=86400")
|
||||
|
||||
Download(
|
||||
w,
|
||||
req,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue