0Pricing
Flask Academy · Lesson

Cache Busting with File Versions

Force browsers to fetch updated assets.

Browsers Love to Cache

Browsers save assets to load pages faster. That is great until you ship a new style.css and visitors keep seeing the cached old one. 🗂️

The Stale Asset Problem

If the URL stays /static/style.css forever, the browser assumes nothing changed. Your fresh design simply never reaches the user.

All lessons in this course

  1. The static Folder Convention
  2. Link Assets with url_for static
  3. Cache Busting with File Versions
  4. Static Files in Production Reality
← Back to Flask Academy