mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Updates to defaults of cache.control setting and enhanced comments
This commit is contained in:
@@ -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
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user