diff --git a/lib/static/views.js b/lib/static/views.js
index 2f4660c60ca3cdd7d691b763227ef6559421a478..e3779900b728bb6c04f5f1d66f3e0e4851fa9855 100644
--- a/lib/static/views.js
+++ b/lib/static/views.js
@@ -13,7 +13,8 @@ und = require('underscore'),
 util = require('util'),
 httputils = require('../httputils.js'),
 etagify = require('etagify'),
-secrets = require('../secrets');
+secrets = require('../secrets'),
+version = require('../version');
 
 require("jwcrypto/lib/algs/rs");
 
@@ -46,6 +47,12 @@ function renderCachableView(req, res, template, options) {
 
   options.enable_development_menu = config.get('enable_development_menu');
 
+  // The real version number is not ready until sometime after initial load,
+  // until it is ready a fake randomly generated string is used. Go get
+  // the real SHA whenever it is actually needed so that the randomly
+  // generated SHA is not returned to the user.
+  options.commit = version();
+
   res.local('util', util);
   res.render(template, options);
 }
diff --git a/resources/views/authenticate_with_primary.ejs b/resources/views/authenticate_with_primary.ejs
index 69d5be5ec11a6bd8e80a78ee6baff71182945361..dbea3d96f352cd0c3f5b119609e1bfab089cdae1 100644
--- a/resources/views/authenticate_with_primary.ejs
+++ b/resources/views/authenticate_with_primary.ejs
@@ -1,7 +1,5 @@
 <!DOCTYPE html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<%- partial('partial/license_with_code_ver') %>
 <html>
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/communication_iframe.ejs b/resources/views/communication_iframe.ejs
index 147b0228a8e6a400f841f2cbadbf60459ef7823b..66c8e0f400d009656402a2c4b5531984c1e2c6d3 100644
--- a/resources/views/communication_iframe.ejs
+++ b/resources/views/communication_iframe.ejs
@@ -1,7 +1,5 @@
 <!DOCTYPE html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<%- partial('partial/license_with_code_ver') %>
 <html>
 <head><title>non-interactive iframe</title>
   <meta charset="utf-8">
diff --git a/resources/views/dialog_layout.ejs b/resources/views/dialog_layout.ejs
index f4bd34390ded7a5ced7151099cfe01344c264a3f..f596ca155a3ac86a9d263c357eeabfd3b5c6f87d 100644
--- a/resources/views/dialog_layout.ejs
+++ b/resources/views/dialog_layout.ejs
@@ -1,8 +1,5 @@
 <!DOCTYPE html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
+<%- partial('partial/license_with_code_ver') %>
 <html LANG="<%= lang %>" dir="<%= lang_dir %>">
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/layout.ejs b/resources/views/layout.ejs
index 69140712acfb6faa17aa5648dc5666446ad99be8..3ebad475ee2b3f45c290b1d8c41ec650ac699d19 100644
--- a/resources/views/layout.ejs
+++ b/resources/views/layout.ejs
@@ -1,7 +1,5 @@
 <!DOCTYPE html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<%- partial('partial/license_with_code_ver') %>
 <html LANG="<%= lang %>" dir="<%= lang_dir %>">
 <head>
   <meta charset="utf-8">
diff --git a/resources/views/partial/license_with_code_ver.ejs b/resources/views/partial/license_with_code_ver.ejs
new file mode 100644
index 0000000000000000000000000000000000000000..7cc908f73db6e0030d843f5af80425a27e81a5cd
--- /dev/null
+++ b/resources/views/partial/license_with_code_ver.ejs
@@ -0,0 +1,7 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this
+   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
+   - Source: https://github.com/mozilla/browserid/
+   - Current Commit: https://github.com/mozilla/browserid/commit/<%- commit %>
+-->
+
diff --git a/resources/views/relay.ejs b/resources/views/relay.ejs
index 6487480da84d1463b3c34665daed4804325d6680..993bb7c1f1066beb14574d7b1640eaf63f994372 100644
--- a/resources/views/relay.ejs
+++ b/resources/views/relay.ejs
@@ -1,7 +1,5 @@
 <!DOCTYPE html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
-   - License, v. 2.0. If a copy of the MPL was not distributed with this
-   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<%- partial('partial/license_with_code_ver') %>
 <html>
 <head>
   <meta charset="utf-8">