couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject [2/6] couchdb commit: updated refs/heads/master to b2c7cc7
Date Mon, 14 Apr 2014 20:03:39 GMT
couchserver: also serve files with cachebuster, remove the GET-Param


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

Branch: refs/heads/master
Commit: 68a828ca9a948711fd9ff92cd432b0454a48a609
Parents: 75fd476
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

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/68a828ca/src/fauxton/tasks/couchserver.js
----------------------------------------------------------------------
diff --git a/src/fauxton/tasks/couchserver.js b/src/fauxton/tasks/couchserver.js
index 95b05e8..e1f18f9 100644
--- a/src/fauxton/tasks/couchserver.js
+++ b/src/fauxton/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