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.
Please let us know if you can help.