Crawlers still see an empty page
Last reviewed
If crawlers still get an empty page after you installed Prebaked, the request is usually not reaching Prebaked, or Prebaked is answering with an error and your integration falls back to your own page. Work through the checks below in order. Replace www.example.com with your site.
1. Compare a crawler with a person
curl -s -A "Googlebot" https://www.example.com/ | head -c 2000
curl -s https://www.example.com/ | head -c 2000
If both answers are the same empty shell (for example only <div id="root"></div> and script tags), go on. If the Googlebot answer has your content, Prebaked works and the problem is elsewhere, for example in robots.txt or a cached result in another tool.
2. Check that the request reached Prebaked
Open the domain in the dashboard and look at the request log. Each crawler request that reaches Prebaked is listed there.
- No request at all: the integration did not call Prebaked, or Prebaked refused the call because of the token or the domain. Go to steps 3 and 4.
- A request that was served: go to step 5.
3. Check the integration
- Cloudflare Worker: the Worker must run on the route of the host you tested, for example
www.example.com/*. A Worker withoutPREBAKED_SERVICE_URLorPREBAKED_TOKENsends every request to your site. - Express (
prerender-node): add the middleware before your static files and app routes, on the app itself, not inside a sub-router. - The crawler name: the user agent must contain one of the names on the crawler list. With
prerender-node3.8.3, add ClaudeBot and OAI-SearchBot withaddUserAgents. - The URL: requests for files such as
.js,.cssand images are never sent to Prebaked. Test a page URL.
4. Call Prebaked directly
This shows Prebaked's own answer, without your integration in between:
curl -i -H "X-Prerender-Token: <your token>" \
https://service.prebaked.io/https://www.example.com/
- 200 with your content: Prebaked works. The problem is in step 3.
- 401 or 403: the token or the domain is wrong. See 401 and 403 errors.
- 508: the request carried an
X-Prerenderheader. Your setup is sending Prebaked's own page fetches back to Prebaked. Requests with that header must go to your site. - A redirect: see redirect loops.
The integrations serve your own page when Prebaked answers with an error, so crawlers get your empty shell instead of an error page. This is why the direct call is the quickest way to see the cause.
5. Check the rendered page
If Prebaked served the request but the content is still missing:
- First request: a new page is rendered on its first request. If it takes longer than the wait, the crawler gets your own page this time and the next request gets the rendered copy. Repeat the curl command after a minute.
- Content loads late: a render ends when the network has been quiet for 500 ms, and at 15 seconds at the latest. If your content waits for something slower, set
window.prerenderReady = falseearly andtruewhen the content is on the page. - Content needs images or fonts: Prebaked does not download images, video, audio or fonts during a render. Content that only appears after an image loads will be missing.
- Content needs a login or cookies: every render starts with no cookies or storage. Content behind a login is not rendered.
For more ways to see what your page does without JavaScript, see debug rendering problems.
Still stuck?
Email hello@prebaked.io with the URL and the output of the commands in steps 1 and 4. Leave out your token.
FAQ
Why do I see my empty page and no error?
The integrations serve your own page when Prebaked answers with an error, so the crawler never sees the error. Call service.prebaked.io directly, as in step 4, to see Prebaked's own answer.
How long until a new page is rendered?
Prebaked waits up to 12 seconds for the first render. If that is not enough, the crawler gets your own page and the next request gets the rendered copy.
What does an empty request log mean?
The request did not reach Prebaked, or Prebaked refused it because of the token or the domain. Check the integration in step 3, then call the service directly as in step 4.
Can Prebaked render pages behind a login?
No. Every render starts with no cookies or storage, so content that needs a login is not rendered.
My Worker is installed but nothing reaches Prebaked. Why?
Check that the Worker runs on the route of the host you tested and that PREBAKED_SERVICE_URL and PREBAKED_TOKEN are set. Without them the Worker sends every request to your site.