Skip to content
Wade Womersley

wade.one

wade womersley – york based software engineer

  • Home
  • 2026
  • October
  • 21
  • Hashed Asset Names Make CDN Releases Easier to Reason About

Hashed Asset Names Make CDN Releases Easier to Reason About

Posted on October 21, 2026 By
Programming

Replacing app.js and hoping every cache forgets the old version is a fairly unpleasant deployment strategy. I prefer filenames that change when the file content changes. The browser can cache the old file confidently, and new HTML can point to the new file without needing the two versions to fight over one URL.

CloudFront’s invalidation guidance explains both invalidation and versioned filenames. Invalidation is useful, but it is not the whole caching story: a browser or another cache can still have its own copy. Giving changed assets a new path makes the intended version explicit.

The deployment sequence matters too. Upload the new assets before publishing HTML that references them, and keep older assets available long enough for existing pages to keep working. Otherwise a release can leave somebody with an old page asking for a file you just deleted. HTML and long-lived static assets generally need different caching decisions.

This is one of those changes that makes the operational explanation shorter. You can inspect a page and see which build it references, compare the files, and reason about rollback. A cache should make the site faster. It should not turn every release into a discussion about why one person’s browser still looks different.

Share:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit

Related

Comments

comments

Tags: caching cloudfront web-deployment

Post navigation

❮ Previous Post: Database Migrations Need to Survive Two App Versions at Once
Next Post: A Scheduled Job Needs a Time Zone, Not Just an Hour ❯

You may also like

Gaming
Epic Games releases Unreal Development Toolkit for FREE
November 7, 2009
Programming
Android 17’s Lock-Free MessageQueue Is a Real Compatibility Check
August 20, 2026
Programming
The Real Cost of Fancy Cloud Abstractions
April 15, 2026
Programming
#leedsphp talk slides uploaded
April 22, 2011
  • AI
  • artificial intelligence
  • Ego-centric
  • Events
  • Films
  • Food
  • Gaming
  • Gym
  • Hardware
  • Holidays
  • News
  • PHP
  • Programming
  • Random Stuff
  • Reviews
  • Science
  • SEO
  • Software
  • Software Engineer
  • Support
  • Uncategorized
  • Work

Copyright © 2026 wade.one.

Theme: Oceanly News Dark by ScriptsTown