We’re having some trouble with resources loading very slowly on the first load after rebuild on a Gatsby site. This is particularly evident with page-data.json and larger .js files.
After this initial load download speed returns to normal for the affected resources. Assuming this is because the cache has been generated.
Here is the request-id of a 555 KB .js file that took 32s to load:
In subsequent loads this resource downloads in less than a second. Is there any reason why the non-cached resources are 30x slower to retrieve? Can this be resolved at all?
We’ve noticed this before on sites for our other clients and is becoming an issue for us in continuing to use your service.
Thanks for getting back here! Glad to hear you can replicate the issue.
Let us know how you go with the review. We have this issue with a few other sites as well – when the problem is resolved do you think this would carry across ti other sites on the same CDN node (assuming that is the issue).
Let us know if not and we can supply the site names for the other affected projects.
Hey @studiopda,
It looks like we didn’t ultimately got back to you! We escalated this to our backend team, implemented some new logs to help us track down what you were seeing, and then never circled back. Our apologies for that.
We did spend some time today looking at traffic to the sites in your account over the last week. We’re seeing good timing, with 180ms average response time. We did see some requests that took over 10s- 26 in total out of more than 22000 over the last 7 days. These requests were for .ttf files, so fonts, and https://www.tdfdesignawards.com/static/home-bg-3267150f6bc8785fd33bb889d90de918.jpg, which is a 1.1MB image. Making that smaller may improve your site performance marginally. But in general, we’re seeing good performance.
Please let us know if you’re seeing something different and we’d be happy to pick back up with the investigation. Thanks!