Tag

Stale-While-Revalidate

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 15, 2025 · Frontend Development

Implementing Stale‑While‑Revalidate with Service Workers for Faster Page Loads

This article explains how to use Service Workers to apply a Stale‑While‑Revalidate caching strategy, detailing the three‑step process, essential APIs, code examples for intercepting and cloning responses, and a complete Express‑based demo to improve first‑visit page performance.

Stale-While-Revalidatecachingfrontend
0 likes · 12 min read
Implementing Stale‑While‑Revalidate with Service Workers for Faster Page Loads
ByteDance ADFE Team
ByteDance ADFE Team
Mar 24, 2022 · Frontend Development

Understanding SWR: Stale‑While‑Revalidate Data Fetching in React

This article explains the SWR library—a lightweight React hook that implements the stale‑while‑revalidate caching strategy—covering its core concepts, basic usage, advanced features like global configuration and middleware, and an overview of its internal implementation.

Data fetchingHooksReact
0 likes · 15 min read
Understanding SWR: Stale‑While‑Revalidate Data Fetching in React