couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [14/19] fauxton commit: updated refs/heads/import-master to 4ab2cde
Date Thu, 17 Apr 2014 08:37:14 GMT
couchserver: also serve files with cachebuster, remove the GET-Param


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/a96b155c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/a96b155c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/a96b155c

Branch: refs/heads/import-master
Commit: a96b155c866c8b086e78705123852383d1abbac0
Parents: 95e1fec
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Mon Mar 31 23:46:01 2014 +0200
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Apr 14 14:40:15 2014 -0400

----------------------------------------------------------------------
 tasks/couchserver.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/a96b155c/tasks/couchserver.js
----------------------------------------------------------------------
diff --git a/tasks/couchserver.js b/tasks/couchserver.js
index 95b05e8..e1f18f9 100644
--- a/tasks/couchserver.js
+++ b/tasks/couchserver.js
@@ -51,6 +51,7 @@ module.exports = function (grunt) {
         filePath = path.join(app_dir, url.replace('/_utils/fauxton/',''));
       } else if (!!url.match(/assets/)) {
         // serve any javascript or css files from here assets dir
+        url = url.replace(/\?.*/, '');
         filePath = path.join('./',url);
       } else if (!!url.match(/mocha|\/test\/core\/|test\.config/)) {
         filePath = path.join('./test', url.replace('/test/',''));


Mime
View raw message