Very bad idea, sorry, I'm so dumb.
What you want to do is the following:
If I delete http://yoursite.com/path/to/resource using a direct HTTP request, then your server will serve me via html for this resource page, and then if you WANT you can use javascript at this point. to βinitializeβ one aspect of the page. From there, if I go through AJAX and trunk routes, all this is good from there. If I then copy the URL, close my browser and then paste it when I open again, I should expect to see the same html.
This approach turned out to be the best approach not only for SEO, but also for the conceptual design of your system, as well as to ensure "work" for all not only fast browsers with JS support.
What you want to avoid at all costs is trying to trick searchers and serve them other content than what the user sees ... this is a recipe for a blacklist.
In the end, design your website so that if you type the URLs through http, you will get the full html, and if you click the same URL in ajax mode with a single-page application, you will get the partial one that you need everything it synchronized .... better architecture, fewer SEO blacklists!
source share