Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix live reload when both CSS and HTML changes #12601

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

bep
Copy link
Member

@bep bep commented Jun 15, 2024

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

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 gohugoio#12600
@bep bep merged commit ad6d91c into gohugoio:master Jun 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Live reload issue when both HTML and CSS changes
1 participant