You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS resources refresh problem when "static" is mounted on "assets" (with example repo)Β #7740
changed the title [-]CSS resources refresh problem when "static" is mounted on "assets"[/-][+]CSS resources refresh problem when "static" is mounted on "assets" (with example repo)[/+]on Sep 27, 2020
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
git clone --single-branch -b hugo-forum-topic-37345 https://github.com/jmooring/hugo-testing hugo-forum-topic-37345
cd hugo-forum-topic-37345
hugo server
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
I'm inclined to close this, because the problem is caused by fingerprinting the published file when running hugo server. The recommended construct is something like this:
{{ with resources.Get "css/static.css" }}
{{ $opts := dict
"minify" (cond hugo.IsDevelopment false true)
"sourceMap" (cond hugo.IsDevelopment "linked" "none")
}}
{{ with . | css.Build $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }}
{{ with . | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
{{ end }}
git clone --single-branch -b hugo-forum-topic-37345 https://github.com/jmooring/hugo-testing hugo-forum-topic-37345
cd hugo-forum-topic-37345
hugo server
Thanks for the clarification. I agree that this looks like a development-time fingerprinting issue rather than a general static -> assets mount problem.
Given the existing css.Build examples already show the hugo.IsDevelopment pattern, Iβll hold off on another docs PR unless you think a very small clarification in that page would be useful.
Activity
https://github.com/gohugoio/hugo/issues/7740
[-]CSS resources refresh problem when "static" is mounted on "assets"[/-][+]CSS resources refresh problem when "static" is mounted on "assets" (with example repo)[/+]github-actions commentedon Feb 19, 2022
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the
masterbranch, please reply with all of the information you have about it in order to keep the issue open.If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
jmooring commentedon Feb 24, 2022
This came up again, but when assets is mounted to static:
https://discourse.gohugo.io/t/is-this-worth-mentioning-in-the-docs/37345
To reproduce:
git clone --single-branch -b hugo-forum-topic-37345 https://github.com/jmooring/hugo-testing hugo-forum-topic-37345 cd hugo-forum-topic-37345 hugo serverThen in a new terminal:
The page is not refreshed.
github-actions commentedon Feb 26, 2023
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the
masterbranch, please reply with all of the information you have about it in order to keep the issue open.If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
divinerites commentedon Feb 26, 2023
Still present in v0.110.0
github-actions commentedon Aug 30, 2025
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the
masterbranch, please reply with all of the information you have about it in order to keep the issue open.If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
jmooring commentedon Aug 30, 2025
I'm inclined to close this, because the problem is caused by fingerprinting the published file when running
hugo server. The recommended construct is something like this:git clone --single-branch -b hugo-forum-topic-37345 https://github.com/jmooring/hugo-testing hugo-forum-topic-37345 cd hugo-forum-topic-37345 hugo serverThen in a new terminal:
Works great.
xndvaz commentedon Jun 14, 2026
Thanks for the clarification. I agree that this looks like a development-time fingerprinting issue rather than a general
static->assetsmount problem.Given the existing
css.Buildexamples already show thehugo.IsDevelopmentpattern, Iβll hold off on another docs PR unless you think a very small clarification in that page would be useful.