I recently worked on a AngularJS based portal. One of the main areas of portal is to list available job opening for the organization. Right now, Google does index some of our job listings. Since jobs do expire and new jobs are regularly updated, google actually doesn't always has latest data.
When I lookup whether a few job links are indexed on google search console, a few of the jobs links are, but only root section of SPA is indexed (no job content available on indexed page), a few are encountering redirection error and a few are not able to load required JS scripts to render page properly even when none of the scripts are hosted externally.
What is the right way to handle search engine optimization for single page applications ? Do I have to create a parallel processed version of page that would be served to crawler ?
Do I write a scheduler to create a sitemap.xml to list all available jobs and push it for analysis ? Even in this case how do I force deletion of stale jobs ?