Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* add image cache expiry parameter

  • Loading branch information...
commit f315eb40b17ad1c8f2fbbf1c2e42a4cc9e22af94 1 parent 3031202
@b1tr0t b1tr0t authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 api/resizeImages.js
View
4 api/resizeImages.js
@@ -26,6 +26,10 @@ var $ = Mobify.$
bits.push(projectId);
}
+ if (options.cache_hours && typeof(options.cache_hours) === 'number') {
+ bits.push('c' + options.cache_hours)
+ }
+
if (options.format) {
bits.push(options.format + (options.quality || ''));
}
Please sign in to comment.
Something went wrong with that request. Please try again.