Implement cache busting (#337)

This commit is contained in:
Francis Lavoie 2023-08-11 12:03:17 -04:00 committed by GitHub
parent 254e415a61
commit c66f785fcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 85 additions and 56 deletions

View file

@ -2,8 +2,9 @@
<html>
<head>
<title>Create Account - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/create.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/create.js{{template "cacheBust"}}"></script>
</head>
<body>
<form action="/api/create-account" class="card">
@ -25,4 +26,4 @@
</section>
</form>
</body>
</html>
</html>

View file

@ -2,9 +2,10 @@
<html>
<head>
<title>Dashboard - Caddy</title>
{{include "/includes/account/head.html"}}
<link rel="stylesheet" href="/resources/css/account/dashboard.css">
<script src="/resources/js/account/dashboard.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<link rel="stylesheet" href="/resources/css/account/dashboard.css{{template "cacheBust"}}">
<script src="/resources/js/account/dashboard.js{{template "cacheBust"}}"></script>
</head>
<body>
<div class="container">
@ -29,4 +30,4 @@
</main>
</div>
</body>
</html>
</html>

View file

@ -2,8 +2,9 @@
<html>
<head>
<title>Log In - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/login.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/login.js{{template "cacheBust"}}"></script>
</head>
<body>
<form action="/api/login" class="card">
@ -22,4 +23,4 @@
</section>
</form>
</body>
</html>
</html>

View file

@ -2,10 +2,11 @@
<html>
<head>
<title>Logout - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/logout.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/logout.js{{template "cacheBust"}}"></script>
</head>
<body>
Logging out...
</body>
</html>
</html>

View file

@ -2,8 +2,9 @@
<html>
<head>
<title>Register Package - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/register-package.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/register-package.js{{template "cacheBust"}}"></script>
</head>
<body>
<div class="container">
@ -39,4 +40,4 @@
</main>
</div>
</body>
</html>
</html>

View file

@ -2,8 +2,9 @@
<html>
<head>
<title>Reset Password - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/reset-password.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/reset-password.js{{template "cacheBust"}}"></script>
</head>
<body>
<form action="/api/reset-password" class="card" id="reset-password-step1">
@ -35,4 +36,4 @@
</section>
</form>
</body>
</html>
</html>

View file

@ -2,8 +2,9 @@
<html>
<head>
<title>Confirm Account - Caddy</title>
{{include "/includes/account/head.html"}}
<script src="/resources/js/account/verify.js"></script>
{{import "/includes/account/head.html"}}
{{template "account-head"}}
<script src="/resources/js/account/verify.js{{template "cacheBust"}}"></script>
</head>
<body>
<form action="/api/verify-account" class="card">
@ -21,4 +22,4 @@
</section>
</form>
</body>
</html>
</html>