HTML & CSS · Senior · Question 70 of 75

Why do build tools emit CSS files with content hashes (app.3f9a1c.css)?

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.

Further reading

Problem with a question

HTML & CSS · Senior · question 70

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz