whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: try timestamping the javascript
Date Tue, 16 Jan 2018 16:34:00 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 341fe4b  try timestamping the javascript
341fe4b is described below

commit 341fe4bfe3abb7aa0674212074293c0b5deaed88
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Jan 16 11:33:48 2018 -0500

    try timestamping the javascript
---
 www/project/icla/main.rb           | 3 ++-
 www/project/icla/views/app.html.rb | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/project/icla/main.rb b/www/project/icla/main.rb
index 8dcbee8..8236625 100755
--- a/www/project/icla/main.rb
+++ b/www/project/icla/main.rb
@@ -56,7 +56,8 @@ get '/invite' do
   @ppmcs = projects['ppmcs']
   @pmc_mail = projects['pmcmail']
 
-  @cssmtime = File.mtime('public/css/icla.css')
+  @cssmtime = File.mtime('public/css/icla.css').to_i
+  @appmtime = Wunderbar::Asset.convert("#{settings.views}/app.js.rb").mtime.to_i
 
   # render the HTML for the application
   _html :app
diff --git a/www/project/icla/views/app.html.rb b/www/project/icla/views/app.html.rb
index c43e027..bb80477 100755
--- a/www/project/icla/views/app.html.rb
+++ b/www/project/icla/views/app.html.rb
@@ -370,7 +370,7 @@ _html lang: 'en', _width: '80' do
     end
 
     _.comment! '/ Footer'
-    _script src: 'app.js'
+    _script src: "app.js?#{@appmtime}"
 
     _.render '#main' do
       _Main data: {pmcs: @pmcs, ppmcs: @ppmcs, pmc_mail: @pmc_mail,

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message