3min chapter

JavaScript Archives - Software Engineering Daily cover image

Remix with Ryan Florence

JavaScript Archives - Software Engineering Daily

CHAPTER

Cache Control Is Crucial for React Apps

The browser has a cache built into it. So as the user clicks around, you've got stuff cached locally in memory. You can actually return cache headers from your data endpoints and remix them. And then there's another header called vary, you can say vary on the cookie. If that string changes in the cookie, then the browser will stop using that cache and it'll ask for the new thing. There's a lot of cool things that the browser can do that HTML has, that the DOM has, that HTTP has. All these things are standards, they're specifications. They're not like, we're not making up our own acronyms here, right?

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode