Browse Source

poor man's solution to css cache busting

/cc @nqst @arturi
Kevin van Zonneveld 6 năm trước cách đây
mục cha
commit
51fadd7f46
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      website/themes/uppy/layout/layout.ejs

+ 2 - 1
website/themes/uppy/layout/layout.ejs

@@ -36,7 +36,8 @@ if (page.series) {
     <script>
       window.PAGE_TYPE = "<%- page.type %>"
     </script>
-    <%- css('css/main') %>
+    <%- css('css/main').replace('.css', '.css?version=2') %>
+    <!-- ^-- poor man's solution to css cache busting. bump the version when there's something new we really want users to see -->
   </head>
   <body class="<%= isIndex ? 'page-index' : 'page-inner' %>">
     <div class="page">