Comments (3)
Hi @felixchan ,
This is expected behavior. Googlebot supports the _escaped_fragment_
protocol for websites rendered with Javascript, so we use that instead when supported. We only fall back to user agent for crawlers that do not support the protocol.
So if you're accessing your website, try another user agent or try the _escaped_fragment_
like this:
If you have an html 5 pushstate url:
http://www.example.com/user/123 == http://www.example.com/user/123/?_escaped_fragment_=
If you have a #! url:
http://www.example.com/#!/user/123 = http://www.example.com/?_escaped_fragment_=/user/123
from prerender.
Thanks. What user agent can I use to test that function?
from prerender.
Oh, sorry. The Prerender server doesn't do any user agent checking, that's the job of the middleware. The Prerender server only takes a URL and prerenders it (with _escaped_fragment_
turned back into #!
). The Node/Rails middleware is what checks the user agent.
You can try twitterbot
: https://github.com/prerender/prerender-node/blob/master/index.js#L37
from prerender.
Related Issues (20)
- basicAuth in nodejs HOT 1
- Prerender flask is not provided?
- Encoded slash is decoded by Prerender HOT 1
- CSS missing from cache even though present in build-time files HOT 2
- Http - Nginx Server Block. Crawlers redirected as 302
- 3 vulnerabilities (2 moderate, 1 high)
- Not prerendering with hash URL (react.js)
- Timeout ignores prerenderReady script and caches half-loaded pages
- Question: is `TIMEOUT_STATUS_CODE` a stable configuration variable
- Retrying connection to Chrome... HOT 2
- Restarting Chrome at almostly every request HOT 2
- Chrome died immediately after restart... stopping Prerender HOT 1
- Unable to fetch Useragent header on Prerender Server
- How to do this with static site?
- Error on running prerender locally HOT 4
- Not able to set default mobile user-agent in prerender
- Cacheing of SPA JS and CSS bundles HOT 1
- Timed out waiting for Chrome connection after Restarting Chrome HOT 16
- Prerender stopped working with ReactJS
- Sending of Custom Headers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prerender.