mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add max-age for static assets
This commit is contained in:
parent
cb22d7423c
commit
e22d6d8549
1 changed files with 4 additions and 0 deletions
|
@ -315,6 +315,10 @@ error 500 do |env|
|
|||
templated "error"
|
||||
end
|
||||
|
||||
static_headers do |response, filepath, filestat|
|
||||
response.headers.add("Cache-Control", "max-age=86400")
|
||||
end
|
||||
|
||||
public_folder "assets"
|
||||
|
||||
Kemal.run
|
||||
|
|
Loading…
Reference in a new issue