Skip to content

Google warns CDN migrations can trigger a crawl surge that crashes servers

Switching to a CDN can cause Google to crawl your site faster than your server can handle, but warming the cache first prevents this.

Google has published advice warning that moving to a CDN, which is a network of servers that speeds up your site, can accidentally flood your main server with traffic from its own crawler. The problem is simple: a faster site looks healthy to Google, so it crawls more aggressively. If your CDN's stored copies of pages (its cache) are empty, every visit from Google hits your main server directly, and that can bring it down.

How it goes wrong. Your server gets hammered by Google's crawler right after you switch, because the CDN has nothing stored yet and passes every request straight through. A server that cannot cope may slow to a crawl or go offline entirely, which means real visitors cannot reach your site either.

What it costs. Downtime means lost visitors and lost sales for however long your server struggles. There is no specific figure in Google's guidance, but a crashed server during a migration can set a site back for days.

Effort. You can do this yourself, though you may want a developer to help with the cache warming step.

What to do. Before you switch to the CDN, load your most visited pages into it first so the cache is not empty when Google arrives. Check that Google's crawler is not being blocked by any rules you have set up to stop bots. If your server starts to struggle after the switch, return the status code 429 or 503, which are signals that tell Google to slow down and try again later.

Our take

Switching to a CDN can flood your server, so warm up the cache before you make the move.

Does this affect your site?The AI search audit checks up to 10 of your pages and gives you a report to share with your team.

Audit my site
Sources: developers.google.com
Qobi

Reviews every brief and story before it goes out.

More in Google