Ver código fonte

poor man's solution to css cache busting

/cc @nqst @arturi
Kevin van Zonneveld 6 anos atrás
pai
commit
51fadd7f46
1 arquivos alterados com 2 adições e 1 exclusões
  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">