# gulp-cache-break

> Simple cache-breaker for gulp, appends a timestamp or md5 hash to any urls

Latest version **0.1.3-rc.1** (published 2017-09-07) · 0 weekly downloads

## Install

```sh
npm install gulp-cache-break
pnpm add gulp-cache-break
yarn add gulp-cache-break
bun add gulp-cache-break
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3-rc.1 |
| Published | 2017-09-07 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | umeruma |
| Maintainers | umeruma |
| Keywords | gulpplugin, gulp, cache, break, bust |

## Links

- npm: https://www.npmjs.com/package/gulp-cache-break
- Repository: https://github.com/umeruma/gulp-cache-break
- Issues: https://github.com/umeruma/gulp-cache-break/issues
- npm.io page: https://npm.io/package/gulp-cache-break

## Dependencies (3)

- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6
- [cache-breaker](https://npm.io/package/cache-breaker.md) 0.0.4

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.1.3-rc.1 (latest) — 2017-09-07

## README

# gulp-cache-break

Simple cache-breaker plugin for gulp, appends a timestamp or md5 hash to any urls.  

This plugin based on [cache-breaker](https://github.com/shakyShane/cache-breaker).  

You can customize output strings by changing option.

Please refer to [cache-breaker](https://github.com/shakyShane/cache-breaker), and [grunt-cache-breaker](https://github.com/shakyShane/grunt-cache-breaker).  

## Usage

```html
<!-- input index.html -->
<meta charset="utf-8">
<title>CACHE BREAK</title>
<link rel="stylesheet" href="css/main.css">
<script defer src="js/libs.js"></script>
<script defer src="js/main.js"></script>
```

```js
// gulp setting
var cacheBreak = require('gulp-cache-break');

gulp.task('cache-breake', function() {
  gulp.src(['index.html'])
    .pipe(cacheBreak({
      match: ['main.js', 'main.css']
    }))
    .pipe(gulp.dest('public'));
});
```

```html
<!-- output public/index.html -->
<meta charset="utf-8">
<title>CACHE BREAK</title>
<link rel="stylesheet" href="css/main.css?rel=1438015738280">
<script defer src="js/libs.js"></script>
<script defer src="js/main.js?rel=1438015738280"></script>
```

---
_Source: https://npm.io/package/gulp-cache-break · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
