From ae38494001d064d68cc67091427f95303e29c3fb Mon Sep 17 00:00:00 2001
From: Neha Kandpal <iec2015048@iiita.ac.in>
Date: Sep 28 2018 16:39:51 +0000
Subject: version updated in static file's url to avoid caching in browser


---

diff --git a/pagure/templates/_render_repo.html b/pagure/templates/_render_repo.html
index d816d79..333e219 100644
--- a/pagure/templates/_render_repo.html
+++ b/pagure/templates/_render_repo.html
@@ -295,15 +295,15 @@
 
 {% macro render_activity_graph(username, _class="") %}
 <script type="text/javascript"src="{{
-  url_for('static', filename='vendor/jquery/jquery.min.js') }}"></script>
+  url_for('static', filename='vendor/jquery/jquery.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript" src="{{
   url_for('static', filename='vendor/d3/d3.v3.min.js') }}"></script>
 <script type="text/javascript" src="{{
-  url_for('static', filename='vendor/jstimezonedetect/jstz.min.js') }}"></script>
+  url_for('static', filename='vendor/jstimezonedetect/jstz.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript" src="{{
-  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.min.js') }}"></script>
+  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.min.js') }}?version={{ g.version}}"></script>
 <link rel="stylesheet" href="{{
-  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.css') }}" />
+  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.css') }}?version={{ g.version}}" />
 
 
 <div class="mb-2 {{_class}}" id="user_graph">
diff --git a/pagure/templates/activity.html b/pagure/templates/activity.html
index 8c5afa7..9c2caba 100644
--- a/pagure/templates/activity.html
+++ b/pagure/templates/activity.html
@@ -15,7 +15,7 @@
   <button class="btn btn-secondary" style="display:none;" id='loadmore'>
     Load more
   </button>
-  <img id="spinnergif" src="{{ url_for('static', filename='images/spinner.gif') }}">
+  <img id="spinnergif" src="{{ url_for('static', filename='images/spinner.gif') }}?version={{ g.version}}">
 </div>
 {% endblock %}
 
diff --git a/pagure/templates/add_deploykey.html b/pagure/templates/add_deploykey.html
index 912dce4..058d4a6 100644
--- a/pagure/templates/add_deploykey.html
+++ b/pagure/templates/add_deploykey.html
@@ -4,7 +4,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
diff --git a/pagure/templates/add_group_project.html b/pagure/templates/add_group_project.html
index df1ca96..7f324c9 100644
--- a/pagure/templates/add_group_project.html
+++ b/pagure/templates/add_group_project.html
@@ -3,7 +3,7 @@
 {% set tag = "groups" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -74,7 +74,7 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript">
 $( document ).ready(function() {
   var group_to_update = "{{ group_to_update }}";
diff --git a/pagure/templates/add_user.html b/pagure/templates/add_user.html
index de9260e..cc25de7 100644
--- a/pagure/templates/add_user.html
+++ b/pagure/templates/add_user.html
@@ -3,7 +3,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -72,7 +72,7 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript">
 $( document ).ready(function() {
   var user_to_update = "{{ user_to_update }}";
diff --git a/pagure/templates/blame.html b/pagure/templates/blame.html
index 4b12d72..72ee027 100644
--- a/pagure/templates/blame.html
+++ b/pagure/templates/blame.html
@@ -5,7 +5,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}"
+<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 <style>
   .hljs {
@@ -176,9 +176,9 @@ No content found in this repository
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}?version={{ g.version}}"></script>
 
 <script>hljs.initHighlightingOnLoad();</script>
 
diff --git a/pagure/templates/commit.html b/pagure/templates/commit.html
index 6b7f58b..6f3149e 100644
--- a/pagure/templates/commit.html
+++ b/pagure/templates/commit.html
@@ -4,9 +4,9 @@
     repo.namespace + '/' if repo.namespace }}{{ repo.name }} - {{ commitid }}{% endblock %}
 {% set tag = "commit"%}
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}"
+<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/diff2html/diff2html.css') }}"
+<link href="{{ url_for('static', filename='vendor/diff2html/diff2html.css') }}?version={{ g.version}}"
   rel="stylesheet" />
   {% if splitview %}
   <style>
@@ -482,13 +482,13 @@
     {{ super() }}
 
     <script type="text/javascript"
-      src="{{ url_for('static', filename='vendor/diff2html/diff2html.min.js') }}"></script>
+      src="{{ url_for('static', filename='vendor/diff2html/diff2html.min.js') }}?version={{ g.version}}"></script>
     <script type="text/javascript"
-      src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}"></script>
+      src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}?version={{ g.version}}"></script>
     <script type="text/javascript"
-      src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}"></script>
+      src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}?version={{ g.version}}"></script>
     <script type="text/javascript"
-      src="{{ url_for('static', filename='vendor/diff2html/diff2html-ui.min.js') }}"></script>
+      src="{{ url_for('static', filename='vendor/diff2html/diff2html-ui.min.js') }}?version={{ g.version}}"></script>
 
     <script type="text/javascript">
       $(document).ready(function() {
diff --git a/pagure/templates/edit_file.html b/pagure/templates/edit_file.html
index 09ee969..79a2364 100644
--- a/pagure/templates/edit_file.html
+++ b/pagure/templates/edit_file.html
@@ -4,8 +4,8 @@
     repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %}
 {% set tag = "home" %}
 {% block header %}
-<script src="{{ url_for('static', filename='vendor/codemirror/codemirror.js') }}"></script>
-<link rel="stylesheet" href="{{ url_for('static', filename='vendor/codemirror/codemirror.css') }}">
+<script src="{{ url_for('static', filename='vendor/codemirror/codemirror.js') }}?version={{ g.version}}"></script>
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/codemirror/codemirror.css') }}?version={{ g.version}}">
 {% endblock%}
 
 {% block repo %}
diff --git a/pagure/templates/file.html b/pagure/templates/file.html
index 7a88740..1f94632 100644
--- a/pagure/templates/file.html
+++ b/pagure/templates/file.html
@@ -5,7 +5,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}"
+<link href="{{ url_for('static', filename='vendor/highlight.js/styles/github.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 <style>
   .hljs {
@@ -258,10 +258,10 @@ No content found in this repository
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}"></script>
-<script src="{{ url_for('static', filename='vendor/highlightjs-line-numbers/highlightjs-line-numbers.min.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/highlight.js/highlight.pack.js') }}?version={{ g.version}}"></script>
+<script src="{{ url_for('static', filename='vendor/highlightjs-line-numbers/highlightjs-line-numbers.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/highlight.js/spec.js') }}?version={{ g.version}}"></script>
 
 <script>
   $(document).ready(function() {
diff --git a/pagure/templates/group_info.html b/pagure/templates/group_info.html
index 626cc1a..d3bf4f8 100644
--- a/pagure/templates/group_info.html
+++ b/pagure/templates/group_info.html
@@ -6,7 +6,7 @@
 {% set tag = "groups" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -123,7 +123,7 @@
 
 {% block jscripts %}
   {{ super() }}
-  <script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+  <script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
   <script type="text/javascript">
   $(document).ready(function() {
     $('#headerSearch').on('keypress keydown keyup', function(e) {
diff --git a/pagure/templates/group_list.html b/pagure/templates/group_list.html
index 8cbd142..cd719ea 100644
--- a/pagure/templates/group_list.html
+++ b/pagure/templates/group_list.html
@@ -9,7 +9,7 @@
 
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -69,7 +69,7 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {
diff --git a/pagure/templates/index.html b/pagure/templates/index.html
index 06db455..d0263f1 100644
--- a/pagure/templates/index.html
+++ b/pagure/templates/index.html
@@ -9,7 +9,7 @@
 
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -39,7 +39,7 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
 
diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html
index 6dc9146..c71ab80 100644
--- a/pagure/templates/issue.html
+++ b/pagure/templates/issue.html
@@ -7,11 +7,11 @@
 {% set tag = "home"%}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -647,21 +647,21 @@ namespace=repo.namespace, repo=repo.name, issueid=issueid)
   var UPLOAD_URL = "{{ url_for('ui_ns.upload_issue', repo=repo.name, username=username, namespace=repo.namespace, issueid=issue.id) }}";
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
+    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='upload.js') }}">
+  src="{{ url_for('static', filename='upload.js') }}?version={{ g.version}}">
 </script>
 
-<script type="text/javascript" src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
-<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}"></script>
-<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}?version={{ g.version}}"></script>
 
 <script type="text/javascript">
 
@@ -841,7 +841,7 @@ $(document).ready(function() {
 
 {% if config['EVENTSOURCE_SOURCE'] and not issue.private %}
 <script type="text/javascript"
-  src="{{ url_for('static', filename='issue_ev.js') }}"></script>
+  src="{{ url_for('static', filename='issue_ev.js') }}?version={{ g.version}}"></script>
 {% endif %}
 
 
@@ -1054,8 +1054,8 @@ $(".comment_and_close_action").click(function(event){
     }
   );
 
-  var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
+  var folder = '{{url_for("static", filename="emoji/png/") }}?version={{ g.version}}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}?version={{ g.version}}';
   emoji_complete(json_url, folder);
 
   $(".comment_body").each(function(ind, obj) {
@@ -1246,8 +1246,8 @@ $( "#previewinmarkdown" ).click(
 </script>
 
 {% if repo.quick_replies %}
-<script type="text/javascript" src="{{ url_for('static', filename='quick_reply.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='quick_reply.js') }}?version={{ g.version}}"></script>
 {% endif %}
-<script type="text/javascript" src="{{ url_for('static', filename='reactions.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='reactions.js') }}?version={{ g.version}}"></script>
 
 {% endblock %}
diff --git a/pagure/templates/issues.html b/pagure/templates/issues.html
index 7a720ca..cc7c14c 100644
--- a/pagure/templates/issues.html
+++ b/pagure/templates/issues.html
@@ -8,7 +8,7 @@
 {% set tag = "home"%}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 <style>
   #tags-filter-group .selectize-input .item{
@@ -521,7 +521,7 @@
 {{ super() }}
 
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript">
 $(document).ready(function() {
 
diff --git a/pagure/templates/master.html b/pagure/templates/master.html
index 299f81b..da57950 100644
--- a/pagure/templates/master.html
+++ b/pagure/templates/master.html
@@ -7,9 +7,9 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     <title>{% block title %}{% endblock %} - {{ theme.site_title }}</title>
     {{ theme.head_imports() }}
-    <link href="{{ url_for('static', filename='pagure.css') }}"
+    <link href="{{ url_for('static', filename='pagure.css') }}?version={{ g.version}}"
     type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('static', filename='vendor/font-awesome/font-awesome.css') }}"
+    <link href="{{ url_for('static', filename='vendor/font-awesome/font-awesome.css') }}?version={{ g.version}}"
     type="text/css" rel="stylesheet" />
     {% block header %}{% endblock %}
   </head>
@@ -19,7 +19,7 @@
     <nav class="navbar {{theme.masthead_class}} navbar-expand">
       <div class="container">
         <a href="{{ url_for('ui_ns.index') }}" class="navbar-brand">
-        <img height=40px src="{{ url_for('theme.static', filename='pagure-logo.png') }}"
+        <img height=40px src="{{ url_for('theme.static', filename='pagure-logo.png') }}?version={{ g.version}}"
              alt="pagure Logo" id="pagureLogo"/>
         </a>
         <ul class="navbar-nav ml-auto">
@@ -162,7 +162,7 @@
     {% block jscripts %}
     <script type="text/javascript"
         src="{{ url_for('static',
-            filename='vendor/jquery/jquery.min.js') }}">
+            filename='vendor/jquery/jquery.min.js') }}?version={{ g.version}}">
     </script>
     {{theme.js_imports()}}
     <script type="text/javascript">
diff --git a/pagure/templates/new_issue.html b/pagure/templates/new_issue.html
index 4e4e816..dac0bfd 100644
--- a/pagure/templates/new_issue.html
+++ b/pagure/templates/new_issue.html
@@ -8,11 +8,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -205,22 +205,22 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
+    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}">
+    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}">
 </script>
 
 <script type="text/javascript">
@@ -253,14 +253,14 @@ $(document).ready(function() {
 
   var emojiStrategy;
   $.getJSON(
-    '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}',
+    '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}?version={{ g.version}}',
     function( data ) {
       emojiStrategy =  data;
     }
   );
 
-  var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
+  var folder = '{{url_for("static", filename="emoji/png/") }}?version={{ g.version}}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}?version={{ g.version}}';
   emoji_complete(json_url, folder);
 
   $(".issue-template").on("click", function() {
diff --git a/pagure/templates/pull_request_title.html b/pagure/templates/pull_request_title.html
index b419428..b850f18 100644
--- a/pagure/templates/pull_request_title.html
+++ b/pagure/templates/pull_request_title.html
@@ -6,11 +6,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -75,16 +75,16 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
+  src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
+  src="{{ url_for('static', filename='emoji/emojicomplete.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}">
+  src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}">
+  src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}?version={{ g.version}}">
 </script>
 
 <script>
diff --git a/pagure/templates/repo_comparecommits.html b/pagure/templates/repo_comparecommits.html
index 16764a3..850e2d5 100644
--- a/pagure/templates/repo_comparecommits.html
+++ b/pagure/templates/repo_comparecommits.html
@@ -8,11 +8,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index 96daf22..a6ac443 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -102,7 +102,7 @@
               <div class="dropdown-menu dropdown-menu-right" id="PR-dropdown">
                 <a class="dropdown-item" id="spinnergif">
                   <small><img
-                    src="{{ url_for('static', filename='images/spinner.gif') }}" />
+                    src="{{ url_for('static', filename='images/spinner.gif') }}?version={{ g.version}}" />
                   </small>
                 </a>
                 <span id="dropdown-item-list" style="display:none;"></span>
@@ -381,7 +381,7 @@
 {{ super() }}
 <script type="text/javascript"
         src="{{ url_for('static',
-            filename='vendor/lazyload/lazyload.min.js') }}">
+            filename='vendor/lazyload/lazyload.min.js') }}?version={{ g.version}}">
     </script>
 <script type="text/javascript">
 window.addEventListener("load", function(event) {
diff --git a/pagure/templates/repo_new_pull_request.html b/pagure/templates/repo_new_pull_request.html
index 49c749b..007e6b1 100644
--- a/pagure/templates/repo_new_pull_request.html
+++ b/pagure/templates/repo_new_pull_request.html
@@ -17,11 +17,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -360,22 +360,22 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
+    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"> </script>
+    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"> </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}"></script>
+    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}"></script>
+    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='request_ev.js') }}"></script>
+  src="{{ url_for('static', filename='request_ev.js') }}?version={{ g.version}}"></script>
 
 <script type="text/javascript">
 
diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html
index e5570f3..b661af1 100644
--- a/pagure/templates/repo_pull_request.html
+++ b/pagure/templates/repo_pull_request.html
@@ -12,11 +12,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -703,22 +703,22 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
+    src="{{ url_for('static', filename='emoji/emojicomplete.js') }}?version={{ g.version}}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"> </script>
+    src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"> </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}"></script>
+    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}"></script>
+    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript"
-  src="{{ url_for('static', filename='request_ev.js') }}"></script>
+  src="{{ url_for('static', filename='request_ev.js') }}?version={{ g.version}}"></script>
 
 <script type="text/javascript">
 function cancel_edit_btn() {
@@ -868,8 +868,8 @@ $(document).ready(function() {
     $( '#commit_msg_' + msgid).toggle();
   });
 
-  var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
+  var folder = '{{url_for("static", filename="emoji/png/") }}?version={{ g.version}}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}?version={{ g.version}}';
 
   var branchselect = $('#branch_select').selectize({
     create: false,
@@ -1451,8 +1451,8 @@ sse = false;
 </script>
 
 {% if repo.quick_replies %}
-<script type="text/javascript" src="{{ url_for('static', filename='quick_reply.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='quick_reply.js') }}?version={{ g.version}}"></script>
 {% endif %}
-<script type="text/javascript" src="{{ url_for('static', filename='reactions.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='reactions.js') }}?version={{ g.version}}"></script>
 
 {% endblock %}
diff --git a/pagure/templates/repo_stats.html b/pagure/templates/repo_stats.html
index 46165bd..65ca666 100644
--- a/pagure/templates/repo_stats.html
+++ b/pagure/templates/repo_stats.html
@@ -38,9 +38,9 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript" src="{{
-  url_for('static', filename='vendor/d3/d3.v4.min.js') }}"></script>
+  url_for('static', filename='vendor/d3/d3.v4.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript" src="{{
-  url_for('static', filename='issues_stats.js') }}"></script>
+  url_for('static', filename='issues_stats.js') }}?version={{ g.version}}"></script>
 
 <script type="text/javascript">
 
@@ -65,7 +65,7 @@ issues_history_stats_plot_call = function() {
   var _b = $("#data_stats");
   var _s = $("#data_stats_spinner");
   _s.html(
-    "<img id='spinnergif' src='{{ url_for('static', filename='images/spinner.gif') }}'>"
+    "<img id='spinnergif' src='{{ url_for('static', filename='images/spinner.gif') }}?version={{ g.version}}'>"
   )
   _s.show();
   _b.html(
@@ -82,7 +82,7 @@ commits_authors_call = function() {
     var _b = $("#data_stats");
     var _s = $("#data_stats_spinner");
     _s.html(
-      "<img id='spinnergif' src='{{ url_for('static', filename='images/spinner.gif') }}'>"
+      "<img id='spinnergif' src='{{ url_for('static', filename='images/spinner.gif') }}?version={{ g.version}}'>"
     )
     _s.show();
     var data = {
diff --git a/pagure/templates/requests.html b/pagure/templates/requests.html
index 81a714a..9f38af9 100644
--- a/pagure/templates/requests.html
+++ b/pagure/templates/requests.html
@@ -298,7 +298,7 @@
 {{ super() }}
 
 <script type="text/javascript"
-  src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+  src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
 <script type="text/javascript">
 $(document).ready(function() {
 
diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html
index 45e772f..176458a 100644
--- a/pagure/templates/settings.html
+++ b/pagure/templates/settings.html
@@ -5,7 +5,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -1089,7 +1089,7 @@
 {% block jscripts %}
 {{ super() }}
 
-<script type="text/javascript" src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}"></script>
 
 <script type="text/javascript">
 function show_acls(acls) {
diff --git a/pagure/templates/user_info.html b/pagure/templates/user_info.html
index 9ca3c02..d701a86 100644
--- a/pagure/templates/user_info.html
+++ b/pagure/templates/user_info.html
@@ -6,7 +6,7 @@
 
 
 {% block header %}
-  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -74,7 +74,7 @@
         });
       });
     </script>
-<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {
diff --git a/pagure/templates/user_list.html b/pagure/templates/user_list.html
index 1be1065..b76122f 100644
--- a/pagure/templates/user_list.html
+++ b/pagure/templates/user_list.html
@@ -7,7 +7,7 @@
 
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -92,7 +92,7 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {
diff --git a/pagure/templates/userdash_master.html b/pagure/templates/userdash_master.html
index 6befca9..0ba45b9 100644
--- a/pagure/templates/userdash_master.html
+++ b/pagure/templates/userdash_master.html
@@ -6,7 +6,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -114,7 +114,7 @@
 
 {% block jscripts %}
 {{ super() }}
-<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}?version={{ g.version}}" type="text/javascript"> </script>
 <script>
 $('#userdash-search').selectize({
     persist: false,
diff --git a/pagure/templates/userdash_template.html b/pagure/templates/userdash_template.html
index f00229e..4bef5e0 100644
--- a/pagure/templates/userdash_template.html
+++ b/pagure/templates/userdash_template.html
@@ -8,7 +8,7 @@
 
 {% block header %}
   <link rel="stylesheet" type="text/css" media="screen"
-      href="{{ url_for('static', filename='toggle.css') }}"/>
+      href="{{ url_for('static', filename='toggle.css') }}?version={{ g.version}}"/>
 {% endblock %}
 
 
diff --git a/pagure/templates/userprofile_master.html b/pagure/templates/userprofile_master.html
index 4bdb9c0..6bc0d70 100644
--- a/pagure/templates/userprofile_master.html
+++ b/pagure/templates/userprofile_master.html
@@ -4,7 +4,7 @@
 {% block title %}User {{username}}{% endblock %}
 
 {% block header %}
-  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 
diff --git a/pagure/themes/chameleon/templates/theme.html b/pagure/themes/chameleon/templates/theme.html
index 137c3f3..b77ee1c 100644
--- a/pagure/themes/chameleon/templates/theme.html
+++ b/pagure/themes/chameleon/templates/theme.html
@@ -6,13 +6,13 @@
 
 {% macro head_imports() %}
     <link rel="shortcut icon" type="image/vnd.microsoft.icon"
-        href="{{ url_for('theme.static', filename='favicon.ico')}}"/>
-    <link href="{{ url_for('theme.static', filename='openSUSE-theme-chameleon-73f164617634541d2391fbe100a594b503a8045d/chameleon.css')}}"
+        href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
+    <link href="{{ url_for('theme.static', filename='openSUSE-theme-chameleon-73f164617634541d2391fbe100a594b503a8045d/chameleon.css')}}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
 {% endmacro %}
 
 {% macro js_imports() %}
-<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}"></script>
+<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
 {% endmacro %}
 
 {% macro browseheader_message(select) %}
diff --git a/pagure/themes/default/templates/theme.html b/pagure/themes/default/templates/theme.html
index be64f27..8aa2f70 100644
--- a/pagure/themes/default/templates/theme.html
+++ b/pagure/themes/default/templates/theme.html
@@ -7,13 +7,13 @@
 
 {% macro head_imports() %}
 <link rel="shortcut icon" type="image/vnd.microsoft.icon"
-href="{{ url_for('theme.static', filename='favicon.ico')}}"/>
-<link rel="stylesheet" href="{{ url_for('static', filename='vendor/bootstrap/bootstrap.min.css')}}" />
-<link href="{{ url_for('theme.static', filename='theme.css') }}" rel="stylesheet" type="text/css" />
+href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/bootstrap/bootstrap.min.css')}}?version={{ g.version}}" />
+<link href="{{ url_for('theme.static', filename='theme.css') }}?version={{ g.version}}" rel="stylesheet" type="text/css" />
 {% endmacro %}
 
 {% macro js_imports() %}
-<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}"></script>
+<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
 {% endmacro %}
 
 {% macro browseheader_message(select) %}
diff --git a/pagure/themes/pagureio/templates/theme.html b/pagure/themes/pagureio/templates/theme.html
index e30bcf3..f06e008 100644
--- a/pagure/themes/pagureio/templates/theme.html
+++ b/pagure/themes/pagureio/templates/theme.html
@@ -6,19 +6,19 @@
 
 {% macro head_imports() %}
     <link rel="shortcut icon" type="image/vnd.microsoft.icon"
-        href="{{ url_for('theme.static', filename='favicon.ico')}}"/>
-    <link href="{{ url_for('theme.static', filename='fedora-bootstrap-1.3.0/fedora-bootstrap.min.css')}}"
+        href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
+    <link href="{{ url_for('theme.static', filename='fedora-bootstrap-1.3.0/fedora-bootstrap.min.css')}}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('theme.static', filename='fonts/fonts.css') }}"
+    <link href="{{ url_for('theme.static', filename='fonts/fonts.css') }}?version={{ g.version}}"
         rel="stylesheet" type="text/css" />
-    <link href="{{ url_for('theme.static', filename='fonts/hack_fonts/css/hack-extended.min.css') }}"
+    <link href="{{ url_for('theme.static', filename='fonts/hack_fonts/css/hack-extended.min.css') }}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('theme.static', filename='theme.css')}}"
+    <link href="{{ url_for('theme.static', filename='theme.css')}}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
 {% endmacro %}
 
 {% macro js_imports() %}
-<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}"></script>
+<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
 {% endmacro %}
 
 {% macro browseheader_message(select) %}
diff --git a/pagure/themes/srcfpo/templates/theme.html b/pagure/themes/srcfpo/templates/theme.html
index a6ec5a1..02febe1 100644
--- a/pagure/themes/srcfpo/templates/theme.html
+++ b/pagure/themes/srcfpo/templates/theme.html
@@ -17,19 +17,19 @@
 
 {% macro head_imports() %}
     <link rel="shortcut icon" type="image/vnd.microsoft.icon"
-        href="{{ url_for('theme.static', filename='favicon.ico')}}"/>
-    <link href="{{ url_for('theme.static', filename='fedora-bootstrap-1.3.0/fedora-bootstrap.min.css')}}"
+        href="{{ url_for('theme.static', filename='favicon.ico')}}?version={{ g.version}}"/>
+    <link href="{{ url_for('theme.static', filename='fedora-bootstrap-1.3.0/fedora-bootstrap.min.css')}}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('theme.static', filename='fonts/fonts.css') }}"
+    <link href="{{ url_for('theme.static', filename='fonts/fonts.css') }}?version={{ g.version}}"
         rel="stylesheet" type="text/css" />
-    <link href="{{ url_for('theme.static', filename='fonts/hack_fonts/css/hack-extended.min.css') }}"
+    <link href="{{ url_for('theme.static', filename='fonts/hack_fonts/css/hack-extended.min.css') }}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('theme.static', filename='theme.css')}}"
+    <link href="{{ url_for('theme.static', filename='theme.css')}}?version={{ g.version}}"
         type="text/css" rel="stylesheet" />
 {% endmacro %}
 
 {% macro js_imports() %}
-<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}"></script>
+<script src="{{ url_for('static', filename='vendor/bootstrap/bootstrap.bundle.min.js')}}?version={{ g.version}}"></script>
 {% endmacro %}
 
 {% macro browseheader_message(select) %}
diff --git a/pagure/themes/srcfpo/templates/userprofile_master.html b/pagure/themes/srcfpo/templates/userprofile_master.html
index e46ac9b..87ed628 100644
--- a/pagure/themes/srcfpo/templates/userprofile_master.html
+++ b/pagure/themes/srcfpo/templates/userprofile_master.html
@@ -3,7 +3,7 @@
 {% block title %}User {{username}}{% endblock %}
 
 {% block header %}
-  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
+  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}?version={{ g.version}}"
   rel="stylesheet" />
 {% endblock %}
 

