TypeScript API / @laikacms/astro/live / LiveCacheOptions
Interface: LiveCacheOptions
Properties
lastModified?
ts
optional lastModified?: boolean;Send updatedAt as the cache hint's lastModified. Defaults to true.
tags?
ts
optional tags?: (context) => string[];Cache tags for an entry. Defaults to ['laika', 'laika:<collection>', 'laika:<key>'].
Parameters
| Parameter | Type |
|---|---|
context | { collection: string; key: string; } |
context.collection | string |
context.key | string |
Returns
string[]