A stale if error will just serve the stale version. The mustr validate response directive indicates that the response can be stored in the cashes and can be used while fresh. There's other ones here, private that will a say that this asset can only be cashed on a private cash. And i like to think of it as an java script where if you have like style dot c s s,. you pop an immutable tag on there, and what that will the browser is cash this thing essentially forever.
In this Hasty Treat, Scott and Wes answer a question about caching, cache control headers, an explanation of the fields for caching.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
LogRocket - Sponsor
LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.
Show Notes
Tweet us your tasty treats