diff --git a/lib/utils/applyCacheHeaders.js b/lib/utils/applyCacheHeaders.js index a39c783..bb31222 100644 --- a/lib/utils/applyCacheHeaders.js +++ b/lib/utils/applyCacheHeaders.js @@ -18,7 +18,7 @@ module.exports = function (file, route) { file.s3.headers["Cache-Control"] = directives.join(", "); if ( route.useExpires ) { - file.s3.headers.Expires = new Date(Date.now() + route.cacheTime * 1000).toUTCString(); + file.s3.headers.Expires = new Date(Date.now() + route.cacheTime * 1000); } } }; diff --git a/package.json b/package.json index 26c75cf..331c243 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-awspublish-router", - "version": "0.1.1", + "version": "0.1.2", "description": "Define your build sources in HTML.", "main": "index.js", "directories": {