79480676

Date: 2025-03-03 09:54:45
Score: 2
Natty:
Report link

Thanks for all the replies, appreciate it.

I was wanting to grab the rendered HTML because google doesnt do SEO very well with Blazor SSR and wanted to create static html files and also create a sitemap from the website and then load a static html file if it was a search engine.

I ended up using a aspnet core worker process that runs everyday to call all the possible website links and create all static html file and a sitemap using:

var response = await client.GetAsync(sWebsitePageURL));
response.EnsureSuccessStatusCode();
var content = await response.Content.ReadAsStringAsync();
await File.WriteAllTextAsync(sDIRToSitemap, content);

Thanks for all the input guys

Regards James

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: James Horrocks