Am getting an odd one, our site sometimes takes a minute to load, and there’s no reliable way to reproduce the issue. I finally managed to get it to happen while I had to the inspector window, which gave the output below. Exactly 1 minute to download, looks like a timeout to me, but what’s timing out? Why is it so hard to reproduce?
The html file was stuck on this for the 1 minute while it was loading:
So it had downloaded effectively all of the html, but it’s almost like the “done” packet isn’t being sent.
Here’s the response headers to show it was a cache hit.
Note that we’re running a cloud worker script which is getting the relevant data from the cache like this:
cache = caches.default;
let contentResponse = await cache.match(cleanUrl);
– then appending Google Font style to the head of based on user agent to ensure fonts load with font-swap.
Our implementation is based on this blog post: Fast Google Fonts with Cloudflare Workers
Appreciate if anyone has seen something like this before.
Cheers
Paul