Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #78 from UziTech/UziTech-cachebuster-docs
Browse files Browse the repository at this point in the history
cachebuster example input
  • Loading branch information
borodean authored Jun 9, 2018
2 parents 248868c + 0375617 commit 8456393
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,24 @@ var options = {
Cachebuster
-----------

PostCSS Assets can bust assets cache, changing urls depending on asset’s modification date:
PostCSS Assets can bust assets cache:

```js
var options = {
cachebuster: true
};
```

Example:

```css
body {
background: resolve('/images/icons/baz.png');
}
```

PostCSS Assets will change urls depending on asset’s modification date:

```css
body {
background: url('/images/icons/baz.png?14a931c501f');
Expand Down

0 comments on commit 8456393

Please sign in to comment.