Skip to content

Append content hashes to files, and update references to these files.

Notifications You must be signed in to change notification settings

mrotaru/cache-bust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cache-bust

Append content hashes to files, and update references to these files.

Example:

$ tree .
img
│   ├── bar.jpg
│   └── foo.png
└── index.html

$ cat index.html
<img src='img/foo.png'>
<img src='img/bar.jpg'>

$ cache-bust --referencing=index.html --referenced='img/**/*'

$ tree .
img
│   ├── bar-1709e1f.jpg
│   └── foo-4358d97.png
└── index.html

$ cat index.html
<img src='img/foo-4358d97.png'>
<img src='img/bar-1709e1f.jpg'>

About

Append content hashes to files, and update references to these files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published