Grunt plugin for cache busting static assets by appending content hashes to filenames. Current stable version is 1.7.0 (last release ~2018). It hashes files (default MD5) and replaces references in HTML/CSS/JS. Unlike other cache busting tools, it supports all file types and includes CDN support. Beware: v1.0.0 introduced breaking changes; maintenance is minimal and Node.js >=0.10.0 required (may not work on modern Node). Use only if maintaining legacy Grunt projects.
npm install grunt-cache-bustNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure grunt-cache-bust task to hash assets in 'public/' and replace references in HTML files, deleting originals after hashing.
Update Gruntfile to use arrays for assets and review other options like baseDir.
If on Node 12+, consider using an alternative or pinning to Node 10 LTS.
Migrate to build tools like Webpack with content hashing built-in.
Set 'deleteOriginals: false' unless you're sure all references are updated.
Add grunt.loadNpmTasks('grunt-cache-bust'); and ensure task is named 'cacheBust' in config.Run grunt from project root where Gruntfile.js exists.
Set options: { assets: ['pattern'] } inside the task configuration.Run 'npm install grunt-cache-bust --save-dev' from project root.