Increase cache time of javascript and css since the files are hashed
This commit is contained in:
parent
89786ad4f8
commit
cb65dde46a
@ -186,7 +186,7 @@ func GetCacheDurationSecondsForPath(filePath string) int {
|
|||||||
return 20
|
return 20
|
||||||
} else if fileExtension == ".js" || fileExtension == ".css" {
|
} else if fileExtension == ".js" || fileExtension == ".css" {
|
||||||
// Cache javascript & CSS
|
// Cache javascript & CSS
|
||||||
return 60 * 60 * 3
|
return 60 * 60 * 24 * 7
|
||||||
} else if fileExtension == ".ts" || fileExtension == ".woff2" {
|
} else if fileExtension == ".ts" || fileExtension == ".woff2" {
|
||||||
// Cache video segments as long as you want. They can't change.
|
// Cache video segments as long as you want. They can't change.
|
||||||
// This matters most for local hosting of segments for recordings
|
// This matters most for local hosting of segments for recordings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user