From db38b49e0379ecaa33348485644dbfeaca6c0f79 Mon Sep 17 00:00:00 2001 From: Lee Henson Date: Wed, 18 Nov 2015 14:48:28 +0000 Subject: [PATCH] call onNoChange if etag matches on HEAD request --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 36dcc7c..a181529 100644 --- a/index.js +++ b/index.js @@ -150,6 +150,11 @@ gulpPrefixer = function (AWS) { // AWS ETag doesn't match local ETag gutil.log(gutil.colors.gray("No Change ..... "), keyname); + + if (options.onNoChange && typeof options.onNoChange === 'function') { + options.onNoChange.call(this, keyname); + } + callback(null); } else {