Syntax - Tasty Web Development Treats
692: You Need Stale While Revalidate

692: You Need Stale While Revalidate

Syntax - Tasty Web Development Treats

22:28

About this episode

In this episode of Syntax, Wes and Scott explain what Stale While Revalidate is, why you should use it, and explore whether you should use it all the time on all the things.
Show Notes 00:25 Welcome
01:05 Syntax Brought to you by Sentry
01:34 What is Stale While Revalidate?
03:13 Why is caching important?
Max age calculator

Can I Use

05:09 Where does a cache live?
07:05 Limit how often an API is being hit
11:51 What about Stale while Revalidate?
18:30 Why wouldn’t you just use Stale While Invalidate on everything?
Syntax 484: Cache Control Headers Explained

Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads
Scott: X Instagram Tiktok LinkedIn Threads

More from Syntax - Tasty Web Development Treats

Scott and Wes get into closing the gap between your taste and your skills, with tips on design inspiration, snappier animations and easing. They also share an entry-level setup for recording video les…

1h 6m

Scott and CJ dig into Exact, Expo’s new Rust-based runtime that takes one codebase to web, iOS, macOS and Linux with no React Native involved, plus Bombadil’s property-based testing for web UIs. They…

1h 11m

Scott and Wes sit down with Michael Arnaldi to dig into Effect v4 and why guardrails matter now that AI agents are writing so much of our code. They discuss going zero dependencies, a 5x smaller bundl…

50m

Scott and Wes sit down with GitHub’s Kyle Daigle to ask what the hell is going on with GitHub: the downtime, the agent traffic spike, and the infrastructure overhaul decoupling storage from compute. P…

31m

Wes, Scott, and CJ are back with two weeks of news: Reddit is forcing everyone to log in, r/opensource bans anything AI, and CSS-Tricks is independent again. Plus Anomaly's Hex dictation app, Mitchell…

1h 35m