gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.98k stars 7.47k forks source link

Fix live reload when both CSS and HTML changes #12601

Closed bep closed 3 months ago

bep commented 3 months ago

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