diff --git a/weather/matchers/temperature.ts b/weather/matchers/temperature.ts index b42732562..67b581a6c 100644 --- a/weather/matchers/temperature.ts +++ b/weather/matchers/temperature.ts @@ -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