addyosmani/basket.js — Issue #26: Support file-versioning (new option: version)
Author: peol
Created: 2012-03-08 19:40:03+00:00
State: open
Labels: enhancement

It would be great if we could force update of a specific key automatically by specifying the version:

```
basket.add('foo.min.js', { key: 'foo', version: '1.0' });

// would do nothing since we already stored foo
basket.add('foo.min.js', { key: 'foo' });

// we updated the version, let's update localStorage as well
basket.add('foo.min.js', { key: 'foo', version: '1.1' });
```

Is this overkill? It's somewhat like `overwrite`, but we'll only do it once the version is updated.