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

```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.