Unity - Platform - Web

Quick Chat

  • ⚠️ 使用 Unity 6 開發

Guide

Template

Performance

Host

Issue

Error : Failed to parse binary data file Build/xxx.data.br…

Failed to parse binary data file Build/web.data.br (with “Content-Type: null”), because it is still brotli-compressed. It should have been uncompressed by the browser, but it was unable to do so since the web server provided the compressed content without specifying the HTTP Response Header “Content-Encoding: br” that would have informed the browser that decompression is needed. Please verify your web server hosting configuration to add the missing “Content-Encoding: br” HTTP Response Header.

📝 需要配置 Content-Encoding 參考 terreng/sws-unity-plugin

Error : Unable to load file Build/xxx.framework.js.br…

Unable to load file Build/xxx.framework.js.br! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)

📝 這是因為 Brotli 壓縮算法僅在 HTTPS 連接中被啟用