thermograph/static
Emi Griffith 521a131646 Cache: day-fresh reads + prefetch every other view (#8)
Two related client-cache improvements in nav.js:

- Day-of-fetch freshness: every cached API response is now tagged with
  the viewer's local calendar day, and a cache hit requires both the TTL
  AND a same-day tag. A cache stored yesterday is refetched today, so a
  new day's data (and the calendar's "days shown") can't stay hidden
  behind an otherwise-fresh cache across a midnight rollover.

- Cross-view prefetch now covers the Day page (api/v2/day), which it
  previously never warmed, and skips any view that already has a fresh
  same-day cache — so it only fetches the pages actually missing one.


Claude-Session: https://claude.ai/code/session_019VP23wKmjS2ozk1g5a9g1Z

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 19:28:34 -07:00
..
app.js Merge remote-tracking branch 'origin/main' into worktree-calendar-status-lines 2026-07-10 18:41:36 -07:00
calendar.html Initial commit: app + 2026-07-10 17:29:47 -07:00
calendar.js Calendar totals: label each bar, share/count toggle, plot Normal 2026-07-10 19:00:41 -07:00
day.html Initial commit: app + 2026-07-10 17:29:47 -07:00
day.js Initial commit: app + 2026-07-10 17:29:47 -07:00
index.html Initial commit: app + 2026-07-10 17:29:47 -07:00
legend.html Initial commit: app + 2026-07-10 17:29:47 -07:00
mappicker.js Initial commit: app + 2026-07-10 17:29:47 -07:00
nav.js Cache: day-fresh reads + prefetch every other view (#8) 2026-07-10 19:28:34 -07:00
style.css Calendar totals: label each bar, share/count toggle, plot Normal 2026-07-10 19:00:41 -07:00