mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-17 09:26:04 +00:00
Raise default S3 backend max-age for manifests to 60s.
The default of 5s is way too aggressive and results in poor experience.
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ func NewS3Backend(
|
||||
|
||||
siteCacheOptions, err := defaultCacheConfig[string, *CachedManifest](
|
||||
config.Backend.S3.SiteCache,
|
||||
5*time.Second, 16*1048576,
|
||||
60*time.Second, 16*1048576,
|
||||
func(key string, value *CachedManifest) uint32 { return value.weight })
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user