Networking·Intermediate·Conceptual·1 min read
Why use immutable caching with hashed assets?
Short interview answer
A content hash changes the URL whenever bytes change, so the old URL can safely receive a long max-age and immutable directive. HTML should not be long-cached under an unversioned URL because it must discover new asset names.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.