1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2021-03-25 16:17:00 -07:00
parent 64f70339d1
commit f0a20b1a5e

View file

@ -144,11 +144,11 @@ module Sidekiq
m = middlewares m = middlewares
::Rack::Builder.new do ::Rack::Builder.new do
use Rack::Static, :urls => ["/stylesheets", "/images", "/javascripts"], use Rack::Static, urls: ["/stylesheets", "/images", "/javascripts"],
:root => ASSETS, root: ASSETS,
:cascade => true, cascade: true,
:header_rules => [ header_rules: [
[:all, {'Cache-Control' => 'public, max-age=86400'}], [:all, {"Cache-Control" => "public, max-age=86400"}]
] ]
m.each { |middleware, block| use(*middleware, &block) } m.each { |middleware, block| use(*middleware, &block) }
use Sidekiq::Web::CsrfProtection unless $TESTING use Sidekiq::Web::CsrfProtection unless $TESTING