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

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