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:
parent
c12c89a8a4
commit
bc024bebdd
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ module Sidekiq
|
||||||
::Rack::Builder.new do
|
::Rack::Builder.new do
|
||||||
%w(stylesheets javascripts images).each do |asset_dir|
|
%w(stylesheets javascripts images).each do |asset_dir|
|
||||||
map "/#{asset_dir}" do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue