meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

753: Cache Ruins Everything Around Me

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 8 April 2024

⏱️ 24 minutes

🧾️ Download transcript

Summary

Scott and Wes dive into the cache problem, tackling user-specific data and caching security. From marketing A/B testing to content negotiation, they explore various challenges and solutions, including different URL/query parameters, edge logic, and client-side caching. Show Notes 00:00 Welcome to Syntax! 01:22 Syntax is on YouTube. 02:16 Let’s talk about the cache problem. 03:33 User-specific data and caching security. 06:27 Why might this pop up? 06:29 Marketing A/B testing - cookie based. 06:55 User-selected features - such as themes. 06:58 Language or geo-based items - accept language. 07:11 Images - WebP for some browsers, jpg for others. 07:45 JSON/HTML based on accept header. 08:17 Different encoding. 08:26 Content negotiation. 08:54 The solutions. 09:04 Provide different URLs/Query parameter. 11:19 Don’t cache the page, cache the data based on query. 15:01 Implement a “Cache Key” - one render for every option. Netlify Fastly Cloudflare 18:17 Use edge logic. 19:52 Just do it client-side. Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads Wes: X Instagram Tiktok LinkedIn Threads Scott:X Instagram Tiktok LinkedIn Threads Randy: X Instagram YouTube Threads

Transcript

Click on a timestamp to play from that location

0:00.0

Welcome to Syntax in this Monday hasty treat. We're going to be talking about how

0:08.0

cash ruins everything around me. That's right. It's both simultaneously a Wu-Tang reference, but also a reference to things that are actually going on in a real development life.

0:19.7

Right now, we have been experiencing some crazy interesting cash issues on the syntax site

0:26.9

and we thought it would be worthwhile to take some time to break them down in this episode.

0:32.8

As always, my name is Scott Tolinsky.

0:34.2

I'm a developer from Denver.

0:35.4

With me as always is West Boss.

0:36.9

What's up, Wes?

0:38.3

Hey, not too much.

0:40.3

I was in a crazy rabbit hole with this cash stuff yesterday and I know you've

0:46.2

gone down the rabbit hole a couple times as well and we finally figured out like what's

0:51.2

going on but like there's like the joke of like the

0:55.5

hardest problem in computer science is like cash and validation and I believe it because

1:01.7

there's so many places where you can cash things and if you get the data in the cash it's very very frustrating so we thought we would explain the problem and the possible solutions that you can hit with this type of stuff.

1:13.2

Specifically, the stuff is going to be around CDNs, CDN caching, not browser and not like a

1:20.4

memory cache. Yeah, but we can talk a little bit about those as well, but before we do, let's head on over to the syntax YouTube. We've been putting out a ton of stuff on the syntax YouTube. That's YouTube. That's YouTube.com forward slash at syntax

1:35.2

fm and very recently CJ has been doing some deep dives into

1:40.0

content that we may have covered on the syntax podcast already things like

1:44.9

self-hosting setting up your own VPS like still hosting yourself on a yeah

1:50.6

VPS and he's going to be diving into more he's releasing one on

1:53.9

DACA very soon it's going to be out by the time you're listening to this and then

1:57.7

even getting into things like coolify or setting up your Mac but CJ has been

...

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.