gulp.task('clear-css-cache', function(){ gulp.src(['index.html']) .pipe(replace(/main.css\?v=[0-9]+/g, 'main.css?v='+Date.now())) .pipe(gulp.dest('./')); });