mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	Add max-age for static assets
This commit is contained in:
		@@ -315,6 +315,10 @@ error 500 do |env|
 | 
			
		||||
  templated "error"
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
static_headers do |response, filepath, filestat|
 | 
			
		||||
  response.headers.add("Cache-Control", "max-age=86400")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
public_folder "assets"
 | 
			
		||||
 | 
			
		||||
Kemal.run
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user