aboutsummaryrefslogtreecommitdiff
path: root/content/notes/2023-05-01-cachebusting-in-hugo.md
blob: b889d6b292a71d616706d5fd22a23eef7c80c453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
title: Cache busting in Hugo
url: cachebusting-in-hugo.html
date: 2023-05-01T12:00:00+02:00
type: note
draft: false
tags: [hugo]
---

```html
{{ $cachebuster := delimit (shuffle (split (md5 "6fab11c6669976d759d2992eff1dd5be") "" )) "" }}

<link rel="stylesheet" href="/style.css?v={{ $cachebuster }}">
```

This `6fab11c6669976d759d2992eff1dd5be` can be random string you generate use.
You can use whatever you want.