-
Notifications
You must be signed in to change notification settings - Fork 37
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
fix: perform server-side rendering only when user-agent is a bot #1744
Conversation
@harshdoesdev, write a test for this also somehow. |
@harshdoesdev we have to make sure SSR happens when we are doing |
@harshdoesdev can we write some test to ensure bots are getting ssr, and non bots are not? |
@amitu I attempted to create a test case for this using |
We should perform SSR only when the user-agent is a bot, otherwise we can skip the SSR step for normal users. It reduces the server response time from
3.7s
to1.5s
(tested on fastn.com served locally).