Google Cache Issue On Reactjs Website

Job ID: 37066780

Budget: $10 – $30 USD

I am looking for a developer who can help me resolve a Google Cache issue on my Reactjs website. Currently, I'm having a lot of issues.

okay assume that I have this website "https://websouls.com/" and for google caching you use this url "cache:websouls.com" so if you hit this url you can see your google cache version of that page.

so I have multiple pages. for example "/shared-hosting" but the google search is showing me the home page becuase I created the route like this

<Route path="/search" element={<Home />} />

just like this so when google save cache it use "/search" route so if that route is not in the website it shows 404 page but how we tackel that issue in reactjs?
Related categories: JavaScript React.js Web Development MERN Stack MERN