Fixes stale notifications on admin pages and Sanity Studio by adding cache tags, revalidation on program changes, and bypassing cache for admin routes.
Highlights
- Notifications query uses cache tags for proper invalidation
- Admin and Studio routes bypass Next.js cache for fresh bell data
- Webhook revalidation busts notifications tag on program/cdKey updates
Caching
- Middleware passes pathname header for route detection in layout
- Root layout revalidates every 60 seconds for public pages
