From 5c483e7c8da8f7352e6f57767c666225732d136d Mon Sep 17 00:00:00 2001 From: Flummi <flummi@f0ck.space> Date: Sun, 26 Dec 2021 17:25:21 +0100 Subject: [PATCH] @mtime() --- views/main/footer.html | 8 ++++---- views/main/header.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/views/main/footer.html b/views/main/footer.html index d6370cf..9b7b35f 100644 --- a/views/main/footer.html +++ b/views/main/footer.html @@ -1,7 +1,7 @@ @if(session)<!--<div style="position: fixed; bottom: 0; z-index: 998; background-color: var(--bg); width: 100%; height: 29px; border-top: 1px solid var(--accent)">{{ JSON.stringify(session) }}</div>-->@endif - <script async src="/s/js/theme.js"></script> - <script src="/s/js/v0ck.js"></script> - <script src="/s/js/f0ck.js"></script> - @if(session)<script src="/s/js/admin.js"></script>@endif + <script async src="/s/js/theme.js?v=@mtime(/public/s/js/theme.js)"></script> + <script src="/s/js/v0ck.js?v=@mtime(/public/s/js/v0ck.js)"></script> + <script src="/s/js/f0ck.js?v=@mtime(/public/s/js/f0ck.js)"></script> + @if(session)<script src="/s/js/admin.js?v=@mtime(/public/s/js/admin.js)"></script>@endif </body> </html> diff --git a/views/main/header.html b/views/main/header.html index 2b52392..0ff9fac 100644 --- a/views/main/header.html +++ b/views/main/header.html @@ -3,7 +3,7 @@ <head> <title>f0ck!</title> <link rel="icon" type="image/gif" href="/s/img/favicon.gif" /> - <link rel="stylesheet" href="/s/css/f0ck.css"> + <link rel="stylesheet" href="/s/css/f0ck.css?v=@mtime(/public/s/css/f0ck.css)"> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> @if(typeof item !== "undefined")<link rel="canonical" href="https://f0ck.me/{{ item.id }}" />@endif