Do not cache main index.html as it is server-rendered
This commit is contained in:
parent
03217d36df
commit
fb9d8c5c18
@ -199,6 +199,8 @@ func GetCacheDurationSecondsForPath(filePath string) int {
|
|||||||
return 0
|
return 0
|
||||||
} else if fileExtension == ".jpg" || fileExtension == ".png" || fileExtension == ".gif" || fileExtension == ".svg" {
|
} else if fileExtension == ".jpg" || fileExtension == ".png" || fileExtension == ".gif" || fileExtension == ".svg" {
|
||||||
return 60 * 60 * 24 * defaultDaysCached
|
return 60 * 60 * 24 * defaultDaysCached
|
||||||
|
} else if fileExtension == ".html" {
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default cache length in seconds
|
// Default cache length in seconds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user