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 authored and Maxime Thirouin committed 2016-06-28 06:46:14 +02:00
1 parent ee530f4c0a
commit 7976f06043
5 files changed
+43 -10

No files matched your search

+1
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 can’t replace body.outerHTML or head.outerHTML