Why does spaces cdn sometimes take 7-12 seconds to deliver a small asset?
Hardware: 8GM Ram 4 vCPUs
OS: Ubuntu 18
Webserver: nginx with cache setup, h2 working for resources served from NGINX, SSL w/ LE
Spaces CDN: All items have meta data for cache set properly, all files that can be gzipped are and working as expected
Website: Wordpress heavily optimized, 33 requests total, no blocking js/css, scoring 95% on gtmetrix, page size 900kbs
I tested my site and every 15-20 hits there is a single asset that takes 7-12 seconds to load (images, under 130kbs), and its coming from my spaces every time (not nginx). Its weird because my home page is 900kbs and the biggest file i have is 120kbs, so no way it should take 7-12s to load, what can i do to resolve this? I have no render blocking JS or CSS so site will still load but image will be missing for about 6 seconds before it finally received over the wire.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!