Commits

Alexandre Vryghem authored a6be9204e6a Merge
Merge remote-tracking branch 'upstream/main' into w2p-98855_themeable-file-download-link_contribute-main

# Conflicts: # src/themes/custom/eager-theme.module.ts
No tags

config/config.example.yml

Modified
25 25 host: api7.dspace.org
26 26 port: 443
27 27 # NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
28 28 nameSpace: /server
29 29
30 30 # Caching settings
31 31 cache:
32 32 # NOTE: how long should objects be cached for by default
33 33 msToLive:
34 34 default: 900000 # 15 minutes
35 - control: max-age=60 # revalidate browser
35 + # Default 'Cache-Control' HTTP Header to set for all static content (including compiled *.js files)
36 + # Defaults to max-age=604,800 seconds (one week). This lets a user's browser know that it can cache these
37 + # files for one week, after which they will be "stale" and need to be redownloaded.
38 + # NOTE: When updates are made to compiled *.js files, it will automatically bypass this browser cache, because
39 + # all compiled *.js files include a unique hash in their name which updates when content is modified.
40 + control: max-age=604800 # revalidate browser
36 41 autoSync:
37 42 defaultTime: 0
38 43 maxBufferSize: 100
39 44 timePerMethod:
40 45 PATCH: 3 # time in seconds
46 + # In-memory cache(s) of server-side rendered pages. These caches will store the most recently accessed public pages.
47 + # Pages are automatically added/dropped from these caches based on how recently they have been used.
48 + # Restarting the app clears all page caches.
49 + # NOTE: To control the cache size, use the "max" setting. Keep in mind, individual cached pages are usually small (<100KB).
50 + # Enabling *both* caches will mean that a page may be cached twice, once in each cache (but may expire at different times via timeToLive).
51 + serverSide:
52 + # Set to true to see all cache hits/misses/refreshes in your console logs. Useful for debugging SSR caching issues.
53 + debug: false
54 + # When enabled (i.e. max > 0), known bots will be sent pages from a server side cache specific for bots.
55 + # (Keep in mind, bot detection cannot be guarranteed. It is possible some bots will bypass this cache.)
56 + botCache:
57 + # Maximum number of pages to cache for known bots. Set to zero (0) to disable server side caching for bots.
58 + # Default is 1000, which means the 1000 most recently accessed public pages will be cached.
59 + # As all pages are cached in server memory, increasing this value will increase memory needs.
60 + # Individual cached pages are usually small (<100KB), so max=1000 should only require ~100MB of memory.
61 + max: 1000
62 + # Amount of time after which cached pages are considered stale (in ms). After becoming stale, the cached
63 + # copy is automatically refreshed on the next request.
64 + # NOTE: For the bot cache, this setting may impact how quickly search engine bots will index new content on your site.
65 + # For example, setting this to one week may mean that search engine bots may not find all new content for one week.
66 + timeToLive: 86400000 # 1 day
67 + # When set to true, after timeToLive expires, the next request will receive the *cached* page & then re-render the page
68 + # behind the scenes to update the cache. This ensures users primarily interact with the cache, but may receive stale pages (older than timeToLive).
69 + # When set to false, after timeToLive expires, the next request will wait on SSR to complete & receive a fresh page (which is then saved to cache).
70 + # This ensures stale pages (older than timeToLive) are never returned from the cache, but some users will wait on SSR.
71 + allowStale: true
72 + # When enabled (i.e. max > 0), all anonymous users will be sent pages from a server side cache.
73 + # This allows anonymous users to interact more quickly with the site, but also means they may see slightly
74 + # outdated content (based on timeToLive)
75 + anonymousCache:
76 + # Maximum number of pages to cache. Default is zero (0) which means anonymous user cache is disabled.
77 + # As all pages are cached in server memory, increasing this value will increase memory needs.
78 + # Individual cached pages are usually small (<100KB), so a value of max=1000 would only require ~100MB of memory.
79 + max: 0
80 + # Amount of time after which cached pages are considered stale (in ms). After becoming stale, the cached
81 + # copy is automatically refreshed on the next request.
82 + # NOTE: For the anonymous cache, it is recommended to keep this value low to avoid anonymous users seeing outdated content.
83 + timeToLive: 10000 # 10 seconds
84 + # When set to true, after timeToLive expires, the next request will receive the *cached* page & then re-render the page
85 + # behind the scenes to update the cache. This ensures users primarily interact with the cache, but may receive stale pages (older than timeToLive).
86 + # When set to false, after timeToLive expires, the next request will wait on SSR to complete & receive a fresh page (which is then saved to cache).
87 + # This ensures stale pages (older than timeToLive) are never returned from the cache, but some users will wait on SSR.
88 + allowStale: true
41 89
42 90 # Authentication settings
43 91 auth:
44 92 # Authentication UI settings
45 93 ui:
46 94 # the amount of time before the idle warning is shown
47 95 timeUntilIdle: 900000 # 15 minutes
48 96 # the amount of time the user has to react after the idle warning is shown before they are logged out.
49 97 idleGracePeriod: 300000 # 5 minutes
50 98 # Authentication REST settings

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut