mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-09 07:03:10 -06:00
Add Cache-Control header
This commit is contained in:
parent
f4345dafde
commit
900d5fc031
|
|
@ -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(
|
Download(
|
||||||
w,
|
w,
|
||||||
req,
|
req,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue