- Published on
Web applications, especially single‑page applications (SPAs) rely heavily on client‑side JavaScript caching for performance and ensuring updates are seamless. Most JavaScript bundlers (vite, webpack, etc.) compile, optimize, and bundle source JavaScript into static assets that are served to the browser. These build pipelines append a hash to the filename of the bundled JS file for cache‑busting purposes. The hash is a unique identifier for the bundled JS file that is generated by the build pipeline.