Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache busting for js and css files #394

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion views/elements/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
{{end}}

{{/* Version number */}}
<div class="text-center text-sm text-base-content/60" role="contentinfo">
<div class="text-center text-xs text-base-content/60 text-gray-500" role="contentinfo">
<span class="inline-flex items-center gap-1">
{{if .Settings.Version}}
{{.Settings.Version}}
Expand Down
12 changes: 6 additions & 6 deletions views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.png">
<link rel="shortcut icon" href="/assets/images/favicon.ico">

<link href="/assets/tailwind.css" rel="stylesheet" />
<link href="/assets/custom.css" rel="stylesheet" />
<link href="/assets/tailwind.css?v={{.Settings.Version}}" rel="stylesheet" />
<link href="/assets/custom.css?v={{.Settings.Version}}" rel="stylesheet" />
<!-- htmx -->
<script src="/assets/htmx.min.js" defer></script>
<script src="/assets/htmx.min.js?v={{.Settings.Version}}" defer></script>
<!-- alpine.js -->
<script src="/assets/alpinejs.min.js" defer></script>
<script src="/assets/alpinejs.min.js?v={{.Settings.Version}}" defer></script>
<!-- Custom utilities -->
<script src="/assets/audioplayer.js" type="module"></script>
<script src="/assets/util.js" defer></script>
<script src="/assets/audioplayer.js?v={{.Settings.Version}}" type="module"></script>
<script src="/assets/util.js?v={{.Settings.Version}}" defer></script>
</head>

<body class="drawer lg:drawer-open min-h-screen bg-base-200">
Expand Down
Loading