cordova-file-cache
Advanced tools
Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "cordova-file-cache", | ||
"main": "dist/CordovaFileCache.js", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"homepage": "https://github.com/markmarijnissen/cordova-file-cache", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -65,2 +65,3 @@ var CordovaFileCache = | ||
this._retry = options.retry || [500,1500,8000]; | ||
this._cacheBuster = !!options.cacheBuster; | ||
@@ -213,3 +214,4 @@ // normalize path | ||
}; | ||
var downloadUrl = url; | ||
if(self._cacheBuster) downloadUrl += "?"+Date.now(); | ||
var download = fs.download(url,path,{retry:self._retry},onSingleDownloadProgress); | ||
@@ -216,0 +218,0 @@ download.then(onDone,onDone); |
@@ -18,2 +18,3 @@ var hash = require('./murmerhash'); | ||
this._retry = options.retry || [500,1500,8000]; | ||
this._cacheBuster = !!options.cacheBuster; | ||
@@ -166,3 +167,4 @@ // normalize path | ||
}; | ||
var downloadUrl = url; | ||
if(self._cacheBuster) downloadUrl += "?"+Date.now(); | ||
var download = fs.download(url,path,{retry:self._retry},onSingleDownloadProgress); | ||
@@ -169,0 +171,0 @@ download.then(onDone,onDone); |
{ | ||
"name": "cordova-file-cache", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Cordova File Cache", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -35,2 +35,3 @@ cordova-file-cache | ||
serverRoot: 'http://yourserver.com/files/' // optional, required on 'mirror' mode | ||
cacheBuster: false | ||
}); | ||
@@ -47,2 +48,3 @@ | ||
* **CordovaPromiseFS()** is an instance of [cordova-promise-fs](https://github.com/markmarijnissen/cordova-promise-fs). | ||
* `cacheBuster` appends a timestamp to the url `?xxxxxx` to avoid the network cache. | ||
@@ -120,2 +122,6 @@ ### Add files to the cache | ||
### 0.3.0 (09/11/2014) | ||
* Added `cacheBuster` option. | ||
### 0.2.0 (07/11/2014) | ||
@@ -122,0 +128,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25903
595
146