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

cachebuster example input #78

Merged
merged 1 commit into from
Jun 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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