Rahul Pal
Rahul Pal

Reputation: 488

React Router 4 showing 404 page on google cache

When I try to see the cached version of my site on google cache it always renders 404 page

I think this is because react router does not understand the route because it is running on a different domain because of google cache.

https://webcache.googleusercontent.com/search?q=cache:5Q4gZU5NIwJ:https://www.sitename.com/+&cd=1&hl=en&ct=clnk&gl=in

Upvotes: 2

Views: 766

Answers (1)

Mickey Kay
Mickey Kay

Reputation: 11

For posterity, this appears to be at least one of the common issues folks have encountered: https://github.com/ReactTraining/react-router/issues/5801

Upvotes: 1

Related Questions