Skip to content

Commit 2880683

Browse files
committed
Fix Rails 5 deprecation warning for static_cache_control
DEPRECATION WARNING: `config.static_cache_control` is deprecated and will be removed in Rails 5.1. Please use config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } instead.
1 parent 2a912c9 commit 2880683

File tree

1 file changed

+1
-1
lines changed
  • spec/dummy/config/environments

1 file changed

+1
-1
lines changed

spec/dummy/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Configure static asset server for tests with Cache-Control for performance.
1717
config.public_file_server.enabled = true
18-
config.static_cache_control = "public, max-age=3600"
18+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
1919

2020
# Show full error reports and disable caching.
2121
config.consider_all_requests_local = true

0 commit comments

Comments
 (0)