Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions weather/matchers/temperature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export interface Props {
temperature: Temperature | null;
}

/**
* The weather match is derived from the visitor's geo (Cf-Iplatitude /
* Cf-Iplongitude) and never from per-user identity, so it is safe to bake
* into cached HTML shared across visitors. Without this, any page using this
* matcher falls through to `Cache-Control: no-store` (see blocks/matcher.ts).
*/
export const cacheable = true;

/**
* @title Weather
* @description Target users based on specific temperature
Expand Down
Loading