I have an AngularJS site that's pretty slow which is causing the SEO to be rather poor. Not to mention, the metadata doesn't render correctly.
To fix this, my thought was to use IIS rewrite rules to redirect to statically generated content (using Nuxt) if your user-agent is a known crawler.
So http://www.example.com/content-url becomes http://www.example.com/s/content-url. If for some reason a real user arrives on the page by accident, I can redirect them back to the actual content.
On a technical level, this is no problem. However, if there is a redirect, won't Google index the static content URL instead of the real url (desired) URL?
Is there any way to get around this? Or am I worried about nothing?