Skip to content

Commit

Permalink
Add missing config for public_file_server for Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes authored and seanpdoyle committed Feb 1, 2024
1 parent d78eee9 commit 7cb697c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/dummy/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Application < Rails::Application
config.active_support.deprecation = :stderr

if Rails.version >= "5"
config.public_file_server.enabled = true
config.public_file_server.headers = {
"Cache-Control" => CACHE_CONTROL_FIVE_MINUTES
}
Expand Down

0 comments on commit 7cb697c

Please sign in to comment.