Skip to content

TypeScript API / @contentia/astro/live / LiveCacheOptions

Interface: LiveCacheOptions ​

Properties ​

lastModified? ​

ts
lastModified?: boolean;

Send updatedAt as the cache hint's lastModified. Defaults to true.


tags? ​

ts
tags?: (context) => string[];

Cache tags for an entry. Defaults to ['contentia', 'contentia:<collection>', 'contentia:<key>'].

Parameters ​

ParameterType
context{ collection: string; key: string; }
context.collectionstring
context.keystring

Returns ​

string[]