-
Notifications
You must be signed in to change notification settings - Fork 80
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
Inject data only when renders via Meteor #108
Comments
Thanks for switching the issue. On Mon, Apr 20, 2015 at 1:39 PM Delgermurun Purevkhuu <
|
Is there a way I can take a look at this? |
Actual code is in the inject data package. See: https://github.com/meteorhacks/inject-data/blob/master/lib/server.js#L29 We currently look it by the |
Or may be you can remove that route from fast-render support. |
Just my thought, we should look for the escaped_fragment and don't support those routes |
Okay. That's a good point. We can remove that from google's bot. Then how about SSR? |
Hmm, what do you mean? Like server side for any other request made by a server? |
I mean HTML pages generated via may be my SSR package or via react or something. May be this is something for future discussion. Currently, I like the escape fragment check. |
Seems to be the case that Content-Type is set to text/html when the request is made from the browser, in the other case with "?escaped_fragment=" it's not there. Could this work for the other use cases too @arunoda ? |
Let's move the discussion there. On Fri, May 1, 2015 at 5:49 PM Tim Brandin [email protected] wrote:
|
I did some changes to make sure fast render runs only for HTML page requests. |
Don't inject when server side rendering.
The text was updated successfully, but these errors were encountered: