Skip to content

Commit

Permalink
fix: append versioning query parameters to asset links in index.html
Browse files Browse the repository at this point in the history
- Updated the asset links in index.html to include versioning query parameters for CSS and JavaScript files. This change ensures that the latest versions of the assets are loaded, improving cache management and reducing potential issues with stale files.
  • Loading branch information
tphakala committed Jan 15, 2025
1 parent 0f87b8d commit 218a1a6
Showing 1 changed file with 6 additions and 6 deletions.
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 218a1a6

Please sign in to comment.