From e8506d94e331ae1fa65d94481053c779aedf7893 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 29 Jan 2013 10:59:30 -0500 Subject: [PATCH] from now any file minifying only if last modified time was changed --- ChangeLog | 3 +++ json/config.json | 2 +- lib/server/minify.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d77d4631..b38058cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -115,6 +115,9 @@ with clicks on files. * Added ability to hide "Upload To" menu item if no storage modules setted up in modules.json. +* From now any file minifying only if last modified +time was changed. + 2012.12.12, Version 0.1.8 diff --git a/json/config.json b/json/config.json index 9a289e50..cab6133b 100644 --- a/json/config.json +++ b/json/config.json @@ -3,7 +3,7 @@ "appcache" : false, "cache" : false, "minification" : { - "js" : false, + "js" : true, "css" : false, "html" : false, "img" : false diff --git a/lib/server/minify.js b/lib/server/minify.js index dc70a546..389ab5a1 100644 --- a/lib/server/minify.js +++ b/lib/server/minify.js @@ -67,6 +67,7 @@ console.log(pName); pParams.callback = null; + pParams.name = pName; if(pParams.request && pParams.response) main.sendFile(pParams); }