logo
episode-header-image
Apr 2024
24m 7s

753: Cache Ruins Everything Around Me

Wes Bos & Scott Tolinski - Full Stack Javascript Web Developers
About this episode

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

Up next
Jul 9
918: Extreme Native Perf on the Web with Superhuman
Wes and Scott talk with Loïc Houssier about how Superhuman builds lightning-fast, delightfully-designed email software. They dig into engineering philosophy, offline-first architecture, local databases, AI-powered productivity, and what it takes to create tools that people love. ... Show More
48m 54s
Jul 7
917: AI Tools You Should Know
Scott and Wes round up the hottest AI tools you should have on your radar; from text-to-speech wizards to self-hosted image generators. They break down what they’re using, what’s worth paying for, and which tools are changing their workflows. Show Notes 00:00 Welcome to Syntax! 0 ... Show More
37m 48s
Jul 2
916: I got fired, what should I focus on?
In this potluck episode of Syntax, Wes and Scott answer your questions about maintaining popular open-source projects, where to start after a layoff, impostor syndrome, Scott’s recording setup, whether a computer science degree is still worth it in the age of AI, and more! Show N ... Show More
58m 24s
Recommended Episodes
Apr 2022
Caching is hard | The Backend Engineering Show
In this episode of the backend engineering show we discuss an article written by the Forem team illustarting a bug they recently fixed in their caching layers. They go into good level of details explaining the 3 levels of caching that they have. I go through this article in this ... Show More
21m 18s
Apr 2021
Browser Caching best practices, when to use no-cache vs max-age without breaking your site
Caching is the hardest problem in building software, and having the browser cache is not any different. In this video, I'll discuss Jake Archibald's article https://jakearchibald.com/2016/caching-best-practices/ 0:00 Intro 2:00 Pattern 1: Immutable content + long max-age 5:40 Pat ... Show More
18m 59s
Dec 2023
#644: Amazon ElastiCache Serverless
In this episode, we’re diving deep into one of the recent announcements from AWS re:Invent, the release of Amazon ElasticCache Serverless. This new option allows customers to create a cache in under a minute and instantly scale capacity based on application traffic patterns. Jill ... Show More
18m 30s
Nov 2020
Basic Caching Techniques Explained - Spatial, Temporal, Distributed, Write-Through, Write-Back, Cache Aside
In this video I go through the three type of caching and how it is kept in sync. 0:00 Intro 0:30 What is Caching? 1:20 Spatial Cache 3:30 Temporal Cache 5:00 Distributed cache 6:30 Write-Through Cache 8:00 Write-Back Cache --- Support this podcast: https://anchor.fm/hnasr/support 
10m 23s
Aug 2022
Memcached Architecture | The Backend Engineering Show
Memcached is an in memory cache with one major feature be a transient cache. Memcached has a very simple design. It was originally designed to help with database load by storing the query result in memory to avoid further querying the database. By default it has no authentication ... Show More
50m 29s
Jan 2024
Episode 55: Popping WordPress Plugins - Methodology Braindump
Episode 55: In this episode of Critical Thinking - Bug Bounty Podcast, Justin is joined by Wordpress Security Researcher Ram Gall to discuss both functionality and vulnerabilities within Wordpress Plugins.Follow us on twitterSend us any feedback here:Shoutout to YTCracker for the ... Show More
1h 44m
Jun 2024
#672: AWS News Updates, June 17, 2024
Jillian and Shruti walk you through the latest and greatest updates. Chapters: 01:13 Analytics 03:02 Application Integration 04:47 Artificial Intelligence 06:57 Compute 10:41 Customer Engagement 10:57 Databases 11:10 Developer Tools 11:43 Front End Web & Mobile 12:45 Internet of ... Show More
18m 54s
Jun 2024
Episode 76: Match & Replace - HTTP Proxies' Most Underrated Feature
Episode 76: In this episode of Critical Thinking - Bug Bounty Podcast we’re talking about Match and Replace and the often overlooked use cases for it, like bypassing paywalls, modifying host headers, and storing payloads. We also talk about the HackerOne Ambassador World Cup and ... Show More
1h 34m
Jul 2023
Episode 27: Top 7 Esoteric Web Vulnerabilities
Episode 27: In this episode of Critical Thinking - Bug Bounty Podcast, we've switched places and now Joel is home while Justin is on the move. We break down seven esoteric web vulnerabilities, and talk Cookies, Config File Injections, Client-side path traversals and more. We also ... Show More
1h 20m
Jun 2024
AI "Tool Use", TikTok's US algorithm, Google confirms leak + more!
Timestamps:0:00 don't forget, now!0:12 Claude, Perplexity, ChatGPT updates1:58 TikTok working on U.S. algorithm3:10 Google addresses Search leak5:30 QUICK BITS INTRO5:36 Spotify giving Car Thing refunds6:14 Google Cloud explains account deletion6:58 Internet Archive DDoS'd 7:26 S ... Show More
9m 31s