Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

benjamin-smith/gulp-cache-break

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cache-break

Append a timestamp to asset URLs in a web app.

Usage

var cacheBreak = require('gulp-cache-break');

...

gulp.task('cacheBreak', function(callback){
    gulp.src('templates/header.html')
        .pipe(cacheBreak('assets/css/styles.css'))
        .pipe(cacheBreak('assets/js/scripts.js'))
        .pipe(gulp.dest('dist'));
})

Changelog

0.2.1

  • Added module require example

0.2.0

  • Added ability to use optional foo.TIMESTAMP.js naming convention (#1)

0.1.0

  • First release

Contributors

Inspiration

About

Append a timestamp to asset URLs in a web app

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors