[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Add cache breaker for our metrics resources



commit dc76aba185f21c0947fb0417fc2b096aa031cea3
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Tue Nov 14 19:20:47 2017 +0100

    Add cache breaker for our metrics resources
    
    This will hopefully fix a whole bunch of problems people are having when
    older resources are cached.
---
 index.html | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 7b88854..56d2e6f 100644
--- a/index.html
+++ b/index.html
@@ -21,12 +21,12 @@
   <meta name="msapplication-square310x310logo" content="https://metrics.torproject.org/images/largetile.png";>
 
   <!-- jQuery -->
-  <script src="https://metrics.torproject.org/js/jquery-3.2.1.min.js";></script>
-  <script src="js/jquery.cookieBar.js"></script>
+  <script src="https://metrics.torproject.org/js/jquery-3.2.1.min.js?v1";></script>
+  <script src="js/jquery.cookieBar.js?v1"></script>
 
   <!-- Bootstrap -->
   <link rel="stylesheet" href="css/bootstrap.min.css">
-  <script src="https://metrics.torproject.org/js/bootstrap.min.js";></script>
+  <script src="https://metrics.torproject.org/js/bootstrap.min.js?v1";></script>
 
   <!-- Fonts -->
   <link rel="stylesheet" href="css/font-awesome.min.css">
@@ -34,11 +34,11 @@
 
   <!-- Prism -->
   <link rel="stylesheet" href="css/prism.css">
-  <script src="https://metrics.torproject.org/js/prism.js";></script>
+  <script src="https://metrics.torproject.org/js/prism.js?v1";></script>
 
   <!-- custom styles and javascript -->
   <link rel="stylesheet" href="css/style.css">
-  <script src="https://metrics.torproject.org/js/script.js";></script>
+  <script src="https://metrics.torproject.org/js/script.js?v1";></script>
 
   <!-- Atlas CSS -->
   <link rel="stylesheet" href="css/atlas.css">
@@ -156,7 +156,12 @@
 <script>
 $('.cookie-message').cookieBar({ closeButton: '.cbc' });
 </script>
-<script data-main="js/main" src="js/libs/require/require.js"></script>
+<script>
+  var require = {
+    urlArgs: "v1"
+  };
+</script>
+<script data-main="js/main" src="js/libs/require/require.js?v1"></script>
 
   <div class="container-fluid" id="footer">
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits