I've told many times that "you should never develop your website in SPA if you want SEO available".
Someone told me that, if your SPA returns an empty index.html
to end-user as following:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>demo</title>
<script type="text/javascript" src="startup.js"></script>
</head>
<body>
</body>
</html>
And you use a pre-render service for search engine, that the crawler will retrieve the full rendered html content. Which means the html content that end-user get and crawler get are different.
If we do in this way, my website will be punished by google.
Can someone give me an official documentation about this?