Updates to defaults of cache.control setting and enhanced comments

This commit is contained in:
Tim Donohue
2023-01-09 16:40:35 -06:00
parent ee0ebebf14
commit 2a7aa2b5c1
2 changed files with 7 additions and 3 deletions

View File

@@ -32,8 +32,12 @@ cache:
# NOTE: how long should objects be cached for by default # NOTE: how long should objects be cached for by default
msToLive: msToLive:
default: 900000 # 15 minutes default: 900000 # 15 minutes
# Cache-Control HTTP Header # Default 'Cache-Control' HTTP Header to set for all static content (including compiled *.js files)
control: max-age=60 # revalidate browser # Defaults to max-age=604,800 seconds (one week). This lets a user's browser know that it can cache these
# files for one week, after which they will be "stale" and need to be redownloaded.
# NOTE: When updates are made to compiled *.js files, it will automatically bypass this browser cache, because
# all compiled *.js files include a unique hash in their name which updates when content is modified.
control: max-age=604800 # revalidate browser
autoSync: autoSync:
defaultTime: 0 defaultTime: 0
maxBufferSize: 100 maxBufferSize: 100

View File

@@ -68,7 +68,7 @@ export class DefaultAppConfig implements AppConfig {
default: 15 * 60 * 1000 // 15 minutes default: 15 * 60 * 1000 // 15 minutes
}, },
// Cache-Control HTTP Header // Cache-Control HTTP Header
control: 'max-age=60', // revalidate browser control: 'max-age=604800', // revalidate browser
autoSync: { autoSync: {
defaultTime: 0, defaultTime: 0,
maxBufferSize: 100, maxBufferSize: 100,