[CST-5729] Change in order to save header only if configured and existing

This commit is contained in:
Giuseppe Digilio
2023-06-14 18:26:55 +02:00
parent ac9be25faf
commit 2f06a7cb17
3 changed files with 23 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ 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
// List of response headers to save into the cache
headers: string[],
// Cache specific to known bots. Allows you to serve cached contents to bots only.
botCache: {