Add cache headers to static files served through Rails (#24120)
This commit is contained in:
		@@ -12,11 +12,6 @@ Rails.application.configure do
 | 
			
		||||
  # preloads Rails for running tests, you may have to set it to true.
 | 
			
		||||
  config.eager_load = false
 | 
			
		||||
 | 
			
		||||
  # Configure public file server for tests with Cache-Control for performance.
 | 
			
		||||
  config.public_file_server.enabled = true
 | 
			
		||||
  config.public_file_server.headers = {
 | 
			
		||||
    'Cache-Control' => "public, max-age=#{1.hour.to_i}"
 | 
			
		||||
  }
 | 
			
		||||
  config.assets.digest = false
 | 
			
		||||
 | 
			
		||||
  # Show full error reports and disable caching.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user