hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
816 stars 110 forks source link

Failed to find a valid digest in the 'integrity' attribute for resource #334

Closed kakayikaka closed 1 year ago

kakayikaka commented 1 year ago

Describe the bug 描述你遇到的错误

当开启 fingerprint 时,html 生成的 integrity 与文件实际哈希码不同

Failed to find a valid digest in the 'integrity' attribute for resource 'https://xxx/js/theme.min.81e852a4cdb2xxxxx3614f93188bc062ae547de10130d3.js' with computed SHA-256 integrity 'PDEns+m+iBIyUUbiXJeu/rZMOAAXdf7cSNPbOHubL8g='. The resource has been blocked.

Expected behavior 期待的行为

可以正常启用 fingerprint

Screenshots 屏幕截图

image

Build Environment 构建环境

No response

Preview Environment 预览环境

No response

Additional Information 补充信息

No response

kakayikaka commented 1 year ago

经过测试,style.min.b859f34dde62366208f15a6ef22b0678.css 可以计算出正确的哈希值,除此之外,其他的 hash 计算结果均与浏览器算出来的不一致

Lruihao commented 1 year ago

未知原因,暂时无法复现