Browser & Web Performance · Junior · Question 42 of 75

Why do build tools put a content hash in file names like app.3f9a1c.js?

Explanation

Hashed assets can use Cache-Control: max-age=31536000, immutable. The HTML that references them is cached briefly or revalidated.

Further reading

Problem with a question

Browser & Web Performance · Junior · question 42

Test yourself

Take the Browser & Web Performance · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz