couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject couchdb commit: updated refs/heads/master to be3bd20
Date Thu, 30 Jan 2014 18:33:25 GMT
Updated Branches:
  refs/heads/master 4f2e50286 -> be3bd20b2


Add Cachebusting to building new releases of fauxton


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

Branch: refs/heads/master
Commit: be3bd20b2fd665d42bb49c66be52eb693f7f5109
Parents: 4f2e502
Author: suelockwood <deathbear@apache.org>
Authored: Thu Jan 30 13:32:45 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Thu Jan 30 13:32:45 2014 -0500

----------------------------------------------------------------------
 src/fauxton/assets/index.underscore | 4 ++--
 src/fauxton/settings.json.default   | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/be3bd20b/src/fauxton/assets/index.underscore
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/index.underscore b/src/fauxton/assets/index.underscore
index cbf5bd6..396cce3 100644
--- a/src/fauxton/assets/index.underscore
+++ b/src/fauxton/assets/index.underscore
@@ -24,7 +24,7 @@
   <title>Project Fauxton</title>
 
   <!-- Application styles. -->
-  <link rel="stylesheet" href="<%= css %>">
+  <link rel="stylesheet" href="<%= css %><%=cachebuster%>">
   <% if (base) { %>
   <base href="<%= base %>"></base>
   <% } %>
@@ -42,6 +42,6 @@
   </div>
 
   <!-- Application source. -->
-  <script data-main="/config" src="<%= requirejs %>"></script>
+  <script data-main="/config" src="<%= requirejs %><%=cachebuster%>"></script>
 </body>
 </html>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/be3bd20b/src/fauxton/settings.json.default
----------------------------------------------------------------------
diff --git a/src/fauxton/settings.json.default b/src/fauxton/settings.json.default
index e817b79..1bc88f6 100644
--- a/src/fauxton/settings.json.default
+++ b/src/fauxton/settings.json.default
@@ -23,7 +23,8 @@
         "variables": {
           "requirejs": "/assets/js/libs/require.js",
           "css": "./css/index.css",
-          "base": null
+          "base": null,
+          "cachebuster": ""
         },
         "app": {
           "root": "/",
@@ -37,7 +38,8 @@
         "variables": {
           "requirejs": "./js/require.js",
           "css": "./css/index.css",
-          "base": null
+          "base": null,
+          "cachebuster": "?v1.0"
         },
         "app": {
           "root": "/_utils/fauxton/",


Mime
View raw message