Append a query string to your assets to bust that cache!
npm install gulp-cache-bust> cachebust plugin for gulp
gulp-cache-bust as a development dependency:sh
npm install --save-dev gulp-cache-bust
`Then, add it to your
gulpfile.js:
`js
var cachebust = require('gulp-cache-bust');gulp.src('./dist//.html')
.pipe(cachebust({
type: 'timestamp'
}))
.pipe(gulp.dest('./dist'));
`API
$3
#### options.type
Type:
String
Default: MD5 The time of query string you want appended to your asset URLs.
#### options.basePath
Type:
String`Path to find File in case you chose the MD5 Type of cache-busting.
Licensed under the MIT license: http://danielfurze.mit-license.org
[npm-url]: https://npmjs.org/package/gulp-cache-bust
[npm-image]: https://badge.fury.io/js/gulp-cache-bust.svg
[travis-url]: http://travis-ci.org/furzeface/gulp-cache-bust
[travis-image]: https://secure.travis-ci.org/furzeface/gulp-cache-bust.svg?branch=master
[coveralls-url]: https://coveralls.io/r/furzeface/gulp-cache-bust
[coveralls-image]: https://coveralls.io/repos/furzeface/gulp-cache-bust/badge.png
[depstat-url]: https://david-dm.org/furzeface/gulp-cache-bust
[depstat-image]: https://david-dm.org/furzeface/gulp-cache-bust.svg