From bc024bebdd13d31f8a2eb9362f78446447dba389 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 30 Aug 2016 13:07:33 -0700 Subject: [PATCH] Allow caching of assets for one day --- lib/sidekiq/web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 6d761fc2..1ee1c489 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -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