Halo, i'm flutter dev recently diving into web field. I hosts my release build with Firebase Hosting, and just found a weird behaviour in the gc Logs Explorer.
My bundles are working just fine and init load time is fast. But, strangely, main.dart.js is sent twice for a single client browser get request. In the client browser console, nothing seems weird: only one single main.dart.js is identified in the network tab. But in a specific environment, Firebase Hosting sends main.dart.js twice in a moment of a blink. No other files or assets are sent twice. They just worked fine, sent only once. I've collected the environments where the main.dart.js is sent twice. Btw, my app is just a test classic counter app, only containing http package in addition(purpose of testing the compiled size of http package). No change in default index.html or elsewhere.
Below list shows the envs where Firebase Hosting send main.dart.js twice.
- mobile private browsing safari (version is specified in the screenshot: 2022-09-06T09:56:27Z: before cache cleared
- mobile private browsing safari (version is specified in the screenshot: 2022-09-06T09:46:21Z: after cache cleared

(i will edit the list if more envs show this weird behaviour)
I've just followed the basic instructions. Nothing special, so confused now. Hope some gurus would figure out the reason why Firebase hOsting is angry with me. Only main.dart.js within some specific envs sent twice. I attached a screenshot of my Cloud Logger when the case happened. Same behaviour is shared through the envs listed above.
Hope this question reaches gurus in the community. Thank you in advance [: