diff --git a/lib/middleware/staticCache.js b/lib/middleware/staticCache.js index 3ec5e425b..3db492fbb 100644 --- a/lib/middleware/staticCache.js +++ b/lib/middleware/staticCache.js @@ -81,6 +81,9 @@ module.exports = function staticCache(options){ // ignore larger files if (!contentLength || contentLength > maxlen) return; + //don't cache partial files + if (headers['content-range']) return; + // dont cache items we shouldn't be // TODO: real support for must-revalidate / no-cache if ( cc['no-cache']