Skip to content

Commit

Permalink
Merge pull request #394 from tphakala/cachebusting
Browse files Browse the repository at this point in the history
Add cache busting for js and css files
  • Loading branch information
tphakala authored Jan 15, 2025
2 parents 0f87b8d + f64e3f2 commit a6b1c97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit a6b1c97

Please sign in to comment.