meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Cache Control Headers Explained

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 30 May 2022

⏱️ 26 minutes

🧾️ Download transcript

Summary

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 Time to live calculator Reminx Conf Opera The United States of Insanity - Official Trailer 00:24 Welcome 01:11 Sponsor: Sentry 02:28 Sponsor: LogRocket 03:08 My struggle has been with caching, cache control headers and would love a better explanation on some of the fields? 04:48 What is a header? 06:05 What is caching? 08:21 Time to live (TTL) 09:08 Benefits of a cache 10:03 Specifying how long to cache 11:06 max-age 12:45 stale-while-revalidate 16:17 stale-if-error 16:54 must-revalidate 17:21 private 18:03 immutable 19:29 no-transform 20:45 Cache Control Request Directives Tweet us your tasty treats Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

Monday! Monday! Monday! Open wide dev fans! Get ready! To stuff your face with

0:07.0

JavaScript CSS! Node modules! Barbecue tips! Get workflow! Break dancing! Soft skills!

0:12.0

Web development! The hastiest! The courageous! The tastiest! Web development

0:17.0

treats! Coming in hot! Here is Wes Barakuda! Boss! And Scott El Torro Lugo!

0:24.0

Tolinsky!

0:27.0

Welcome to syntax on this Monday hasty treat! The 464th episode of syntax!

0:34.0

We're going to be talking about cache control headers. Now this is something that

0:38.0

we're going to have to be spending more time on as web developers as tools start to

0:43.0

utilize browser fundamentals and things like that. Just a little bit more, right?

0:48.0

I think we're seeing this with tools like remix. I know felt kit mix is nice and easy.

0:52.0

I'm sure other other tools do as well. So this all started off with a question from Chris

0:58.0

M. But before we get into that, let's take a minute to talk about our sponsors and

1:02.0

introduce Wes Boss, as always, who is the co-host of this show Wes coming live from

1:10.0

Canada. How's it going? It's going good. Let's talk about our sponsor, which is

1:14.0

Century. Century does error exception and performance tracking.

1:20.0

It's just an awesome company for I specifically track all the bugs that I have on

1:26.0

all my own website. So I we just recently launched a whole big update both to

1:32.0

the backend as well as to the big the front end viewing experience. And with

1:38.0

that, as soon as we launched that sucker, we had the century issue page open and

1:44.0

we were just sort of eyes peeled watching exactly what was happening.

1:50.0

And you start to see these issues pop up. You fix them. You say they are fixed and

1:56.0

you hope they do not come back. You can you can tie it to a specific version of your

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.