Add max-age for static assets

このコミットが含まれているのは:
Omar Roth 2018-03-09 11:28:57 -06:00
コミット e22d6d8549
1個のファイルの変更4行の追加0行の削除

ファイルの表示

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