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
- The static Folder Convention
- Link Assets with url_for static
- Cache Busting with File Versions
- Static Files in Production Reality