Add Cache-Control header

This commit is contained in:
Till Faelligen 2022-08-02 17:39:32 +02:00
parent f4345dafde
commit 900d5fc031
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -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,