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

Commits on Jun 15, 2024

  1. 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 gohugoio#12600
    bep committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    c24cf6a View commit details
    Browse the repository at this point in the history