HTML & CSS · Senior · Question 70 of 75
Why do build tools emit CSS files with content hashes (app.3f9a1c.css)?
- ✓Correct answer: So files can be cached "forever" (
immutable) while every change gets a new URL - 2To obfuscate the CSS
- 3To make files smaller
Explanation
The HTML referencing the file is short-lived; the asset itself never changes under the same name. This avoids users getting stale styles after a deploy.