Permalink
Browse files

Removed && false in if statement that should not have been there. Mad…

…e it to not serve raw version of cache by default.
  • Loading branch information...
1 parent d7873cb commit 8ceaf3b05346ba025bbb0760f6435b5540add12c @jondubois committed Jan 20, 2014
Showing with 4 additions and 4 deletions.
  1. +3 −3 index.js
  2. +1 −1 package.json
View
@@ -373,7 +373,7 @@ Cachemere.prototype.set = function (options, callback) {
updateOptions.url = this._simplifyURL(updateOptions.url);
updateOptions.content = this._valueToBuffer(updateOptions.content);
- if (updateOptions.content != null && !updateOptions.disableServeRaw && false) {
+ if (updateOptions.content != null && updateOptions.allowServeRaw) {
this._cache.set(this.ENCODING_PLAIN, updateOptions.url, updateOptions.content, updateOptions.cacheType);
}
@@ -391,12 +391,12 @@ Cachemere.prototype.set = function (options, callback) {
}
};
-Cachemere.prototype.setRaw = function (url, content, mime, disableServeRaw, callback) {
+Cachemere.prototype.setRaw = function (url, content, mime, allowServeRaw, callback) {
var options = {
url: url,
content: content,
mime: mime,
- disableServeRaw: disableServeRaw,
+ allowServeRaw: allowServeRaw,
cacheType: this.CACHE_TYPE_PERMANENT
};
this.set(options, callback);
View
@@ -1,7 +1,7 @@
{
"name": "cachemere",
"description": "A nice, smooth, cushiony layer of cache",
- "version": "0.9.11",
+ "version": "0.9.12",
"author": {
"name": "JF Gros-Dubois",
"email": "flashthink@gmail.com"

0 comments on commit 8ceaf3b

Please sign in to comment.