mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Increase cache time of javascript and css since the files are hashed
This commit is contained in:
		| @ -186,7 +186,7 @@ func GetCacheDurationSecondsForPath(filePath string) int { | ||||
| 		return 20 | ||||
| 	} else if fileExtension == ".js" || fileExtension == ".css" { | ||||
| 		// Cache javascript & CSS | ||||
| 		return 60 * 60 * 3 | ||||
| 		return 60 * 60 * 24 * 7 | ||||
| 	} else if fileExtension == ".ts" || fileExtension == ".woff2" { | ||||
| 		// Cache video segments as long as you want. They can't change. | ||||
| 		// This matters most for local hosting of segments for recordings | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas