[CST-5729] Add possibility to store response's headers into the SSR cache

This commit is contained in:
Giuseppe Digilio
2023-06-13 19:00:33 +02:00
parent 48ea7df8b2
commit 486aefebc7
3 changed files with 17 additions and 5 deletions

View File

@@ -13,6 +13,8 @@ export interface CacheConfig extends Config {
serverSide: {
// Debug server-side caching. Set to true to see cache hits/misses/refreshes in console logs.
debug: boolean,
// List of headers to restore from the cache hit
headers: string[],
// Cache specific to known bots. Allows you to serve cached contents to bots only.
botCache: {
// Maximum number of pages (rendered via SSR) to cache. Setting max=0 disables the cache.