My blog goes stale until the second visit — how I fixed it with the correct cache strategy
An Astro service worker served every navigation from cache first, so new articles appeared one visit late. Listings now go to the network first.
An Astro service worker served every navigation from cache first, so new articles appeared one visit late. Listings now go to the network first.
How measurements decided a service worker for an Astro blog: 287KB precached instead of 11.7MB of HTML, 50 pages capped, and no expiry date.