Pre-rendering doesn’t work for URLs that end with a slug containing a dot (“.”).
The below urls have been tested after setting my browser’s user-agent to: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Examples:
https://openbase.com/js/socket.io
- Fails
https://openbase.com/js/socket-io
- Succeeds
https://openbase.com/js/socket.io/overivew
- Succeeds
https://openbase.com/js/socket.io/overview.abc
- Fails
https://openbase.com/js/socket.io/overview?test.val=1
- Succeeds
I’ve tried running the prerender source both from GitHub - prerender/prerender: Node server that uses Headless Chrome to render a javascript-rendered page as HTML. To be used in conjunction with prerender middleware. and GitHub - netlify/prerender, and both always seem to successfully pre-render when run locally on the problem URLs above, which doesn’t help to debug the issue.
These URLs only seem not to pre-render using the built-in pre-render setting from Netlify’s “Build & deploy” settings. I’ve also tried the window.prerenderReady = false
strategy that was suggested from the prerender.io docs, but that also seemed not to do anything on the above problem URLs.
Please assist.