-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommended Setup until Rehydration is Possible #106
Comments
@hhff I do that via nginx configuration, as it acts like a proxy in between request & fastboot or prerender. Check user agent and pass to respective backend. |
@tylr is doing this for Bustle, he can probably give you the details on how to detect the Googlebot. |
Thanks both - would love some pointers on the finer points of Fastboot SEO & Infra. Bustle is for sure killing it in that world Sitemap / Full site crawling tips welcome too!! Will be happy to contribute my findings back to the repo as docs! |
@hhff this is how I do it with nginx & prerender. It could be similar later on with fastboot |
amazing @RuslanZavacky ! |
While Bustle still uses Google has officially deprecated and dropped support for it and encourages you not to use it. We do however use (read: need) server-side rendering for social media bots and services. We're also investigating ways of serving a non-rehydratable DOM / skeleton to browsers if we can perfect the re-draw when the app actually boots and provide a satisfactory UX. Which might make use out of it pre-rehydration. If you want good google SEO, simply follow their best practices and submit a sitemap to webmaster tools. |
Gonna close this for now but we should definitely make sure we put some "Best Practices" documentation together. @hhff maybe you can tackle this once you've tried it out. :) |
totally, will do! feel like having a static full-page loader in the non-rehdratable skeleton HTML and then pulling the loader away shortly after a full-redraw might be a good half-step for this. |
@RuslanZavacky ... I'm just curious.. Have you noticed any ill effects from serving the pre-rendered HTML to the googlebot.. According to google docs, you should serve them the same content as your users. Prerender.io recommend that you don't serve the pre-rendered HTML, as you can see if their config here I would love to serve them up the pre-rendered HTML from prerender.io as it renders so much faster. |
@ianpetzer my solution is a bit more complicated, than just serving simple HTML. I store static HTML until I do any changes or information of specific page changes. If for example, I change information on 1 page, I schedule it for HTML cache update. So I am always trying to keep HTML cache up to date. My next improvements would be to place Varnish in front of prerender (or fastboot) so Varnish cache everything, instead I do it manually :) There is a potential risk, but it mainly relates to the popups, modal windows jumping over, or content disappearing. Like if you want to boost your SEO, you show Google totally different content. In our case, its fine, because we are not doing anything bad :) |
Add link to s3-notifier
Hi !
I'm looking at using Fastboot for an upcoming build - because strong SEO & metatags is a must. Until Rehydration is working - is there a recommended way of handling the routing:
--> "hi request, you're a crawler, go to my fastboot server for an index.html"
--> "hi request, you're a browser, here's my real app server that will give you an index.html"
Or is this an exercise best left to the developer? Working on the infra stuffs 👍
Thankyou!!
The text was updated successfully, but these errors were encountered: