Skip to content
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

A huge <script type="text/inject-data"> tag is causing twitter card fetching problem #15

Open
sardormajano opened this issue Feb 1, 2017 · 1 comment

Comments

@sardormajano
Copy link

Since I started using react-router-ssr, Twitterbot is returning error "response is too large" when I try to validate my news pages because twitter has a limit: you cannot validate pages with sizes more than 1MB. In my single-news page (http://nurotan.kz/single-news?id=pNJwNp7GYfeSkRCGf&lang=ru) the <script type="text/inject-data"> tag weighs 5MB. Is it possible not to render this tag for certain useragents (twitterbot for instance)?

@sardormajano
Copy link
Author

Or is there another solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant