1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Allow caching of assets for one day

This commit is contained in:
Mike Perham 2016-08-30 13:07:33 -07:00
parent c12c89a8a4
commit bc024bebdd

View file

@ -128,7 +128,7 @@ module Sidekiq
::Rack::Builder.new do
%w(stylesheets javascripts images).each do |asset_dir|
map "/#{asset_dir}" do
run ::Rack::File.new("#{ASSETS}/#{asset_dir}")
run ::Rack::File.new("#{ASSETS}/#{asset_dir}", { 'Cache-Control' => 'public, max-age=86400' })
end
end