diff --git a/lib/RAL/Image.js b/lib/RAL/Image.js index ed641e4..399a288 100644 --- a/lib/RAL/Image.js +++ b/lib/RAL/Image.js @@ -30,7 +30,7 @@ RAL.RemoteImage = function(options) { } // if there is a TTL use that instead of the default - if(this.ignoreCacheHeaders && typeof this.timeToLive !== "undefined") { + if(this.ignoreCacheHeaders && typeof options.timeToLive !== "undefined") { this.timeToLive = options.timeToLive; }