dejanmilosevic0
dejanmilosevic0

Reputation: 311

REACT spa app - serving separate and different prerendered static html for SEO, benefits and drawbacks

Are there any benefits or drawbacks if you serving light version of page optimized for SEO if bots crawls and if people come from web then react SPA which completely javascript application.

Basically question is, is there practice to actually serve like short HTML version which contains only SEO important things and rips off everything else for bots and full page for users.

Is there any use case or example that somebody have used this technique?

Upvotes: 1

Views: 465

Answers (3)

CMT Direct
CMT Direct

Reputation: 1

The Prerender.io middleware that you install on your server will check each request to see if it's a request from a crawler. If it is a request from a crawler, the middleware will send a request to Prerender.io for the static HTML of that page. If not, the request will continue on to your normal server routes. The crawler never knows that you are using Prerender.io since the response always goes through your server.

Quora SEO post
taekwondomonfils.com SEO

Upvotes: 0

Prerender.io
Prerender.io

Reputation: 1604

This would be seen as Cloaking by the crawlers and could get your site penalized in the search results. If you are serving a prerendered page, you will want to make sure it is the exact page that your users will see after the javascript has been executed in order to prevent any cloaking issues.

Upvotes: 1

ene_salinas
ene_salinas

Reputation: 705

You'll could mount prerender:

The Prerender.io middleware that you install on your server will check each request to see if it's a request from a crawler. If it is a request from a crawler, the middleware will send a request to Prerender.io for the static HTML of that page. If not, the request will continue on to your normal server routes. The crawler never knows that you are using Prerender.io since the response always goes through your server.

Upvotes: 0

Related Questions