Search code examples
firebasefirebase-hosting

Firebase hosting static file serve very slow


My user took 1.6 min to download a 900KB static file from firebase hosting.

May I know is there any way to optimize this?

enter image description here


Solution

  • Thanks for Doug Stevenson on pointing out, the main reason for slow TTFB and content download speed is because Fastly CDN performs poorly in my country (Malaysia). Switched to Cloudflare to resolve the problem.

    The image below shows that test on Cloud Harmony, Fastly CDN has a really bad result especially downlink for > 256KB enter image description here