JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3610
  • Score
    100M100P100Q123957F
  • License MIT

Append a query string to your assets to bust that cache!

Package Exports

  • gulp-cache-bust

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-cache-bust) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-cache-bust

NPM version Build Status Coverage Status Dependency Status

cachebust plugin for gulp

Usage

First, install gulp-cache-bust as a development dependency:

npm install --save-dev gulp-cache-bust

Then, add it to your gulpfile.js:

var cachebust = require('gulp-cache-bust');

gulp.src('./dist/*/*.html')
    .pipe(cachebust({
        type: 'timestamp'
    }))
    .pipe(gulp.dest('./dist'));

API

cache-bust(options)

options.type

Type: String
Default: MD5

The time of query string you want appended to your asset URLs.

options.basePath

Type: String Default: ''

Path to find File in case you chose the MD5 Type of cache-busting.

License

Copyright (c) 2014 Daniel Furze.

Licensed under the MIT license: http://danielfurze.mit-license.org