In Angular 4/5, instead of prerendering each request, is it possible to prerender only requests that come from Facebook and Twitter crawler i.e. when the user shares those URLs on Facebook or Twitter. I was thinking if we can implement something like this using a reverse proxy where if the request is coming from Facebook or Twitter bot then I can serve them from a different environment which pre-renders the Angular code.
I have a dynamic website which I can't cache as well as due to heavy traffic it would be inefficient to pre-render each request.