mirror of
https://github.com/iv-org/invidious
synced 2024-11-28 05:53:28 +01:00
Add max-age for static assets
This commit is contained in:
parent
cb22d7423c
commit
e22d6d8549
@ -315,6 +315,10 @@ error 500 do |env|
|
|||||||
templated "error"
|
templated "error"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
static_headers do |response, filepath, filestat|
|
||||||
|
response.headers.add("Cache-Control", "max-age=86400")
|
||||||
|
end
|
||||||
|
|
||||||
public_folder "assets"
|
public_folder "assets"
|
||||||
|
|
||||||
Kemal.run
|
Kemal.run
|
||||||
|
Loading…
Reference in New Issue
Block a user