Added: cacheBust option (#71)

* Refactor request test to allow further tests to be added

* Make cache-busting optional

Closes #70
This commit was merged in pull request #71.
This commit is contained in:
Bart Nagel
2016-06-27 21:46:14 -07:00
committed by Maxime Thirouin
parent ee530f4c0a
commit 7976f06043
5 changed files with 43 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ module.exports = function(options){
}
}
this.options.scrollTo = (typeof this.options.scrollTo === 'undefined') ? 0 : this.options.scrollTo;
this.options.cacheBust = (typeof this.options.cacheBust === 'undefined') ? true : this.options.cacheBust
this.options.debug = this.options.debug || false
// we cant replace body.outerHTML or head.outerHTML