]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix live reload when both CSS and HTML changes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Jun 2024 14:38:34 +0000 (16:38 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 15 Jun 2024 18:13:42 +0000 (20:13 +0200)
commitad6d91cabd84aac1be6e83511a543643562cb1b2
treec425b0fdc9d5651be1a65702583e4b0ff83d05a5
parent57165d44ede02da430d444b989a19100d1ae004d
Fix live reload when both CSS and HTML changes

This seems to be a browser bug (tested in both Chrome and Safari on MacOS), but it seems that doing a `window.location.reload()` (or `window.location.reload(true)`) doesn't refresh the CSS changes, even if HTTP caching is disabled.

This commit works around this by doing additional refreshes of the CSSes.

Closes #12600
commands/hugobuilder.go