hashed file name
A file name that includes a hash of the file's contents, such as app.3f9a1c.js, so any change produces a new name.
In more detail
Build tools add the hash automatically when they produce bundles. Because a given name always means the same bytes, the file can be cached forever with Cache-Control immutable, and updates are picked up simply by referencing the new name.
Related terms
- Cache-Control — The HTTP header that states the caching policy for a response, such as private, max-age=0 or no-store.
- cache-first strategy — A caching strategy that answers from the cache when possible and only goes to the network, then caches the result, on a miss.
- bundle — The files a build tool produces by combining an application's code and its libraries for the browser to download.
Taught in
- Cache Storage API: Offline Strategies And Cache-First Patterns — Frontend Architecture & Web Platform
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform