Registry / devops / gulp-cache-bust

gulp-cache-bust

JSON →
library1.4.1jsnpmunverified

Gulp plugin for cache busting static assets by appending a query string (MD5 hash or timestamp) to asset URLs in HTML files. Current stable version is 1.4.1, released in 2016, and the package is not actively maintained. It supports 'timestamp' and 'MD5' types. Compared to similar plugins like gulp-rev, gulp-cache-bust is simpler but less flexible, lacking features like manifest generation or file renaming. The package is deprecated in favor of more modern approaches.

npm install gulp-cache-bust
INSTALL
IMPORT
SIG · GULP-CACHE-BUST
G
gulp-cache-bust
devopsjavascriptv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
const cachebust = require('gulp-cache-bust');
import cachebust from 'gulp-cache-bust';
This package does not support ES modules; use CommonJS require.

Shows how to use gulp-cache-bust to append a timestamp query string to asset URLs in HTML files.

const gulp = require('gulp'); const cachebust = require('gulp-cache-bust'); gulp.task('cachebust', () => { return gulp.src('./dist/**/*.html') .pipe(cachebust({ type: 'timestamp' })) .pipe(gulp.dest('./dist')); });
Debug
Known issues
deprecatedPackage is deprecated; no updates since 2016. Not compatible with Gulp 4 without workarounds.
fix
Use a modern alternative like gulp-rev or gulp-version-number.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'gulp-cache-bust'
Package not installed or misspelled.
fix
Run 'npm install --save-dev gulp-cache-bust' and ensure correct spelling.
TypeError: cachebust is not a function
Incorrect import (ES import instead of require).
fix
Use 'const cachebust = require('gulp-cache-bust');' instead of 'import'.
Upgrade
Version history
1.4.1latest on npm
Audit
Dependencies
gulpoptionalRequired as peer dependency to use as a gulp plugin
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
gulp-cache-bust — npm install gulp-cache-bust · libregistry