Swimburger

PowerShell Snippet: Crawling a sitemap

Niels Swimberghe

Niels Swimberghe - - PowerShell

Follow me on Twitter, buy me a coffee

PowerShell logo

Here's a PowerShell function that you can use to validate that all pages in your sitemap return a HTTP Status code 200.
You can also use it to warm up your website, or ensure your website caching is warm after a cold boot.

You can use the script as follows:

I personally use it as part of my Continuous Delivery pipeline to warm up my site and Cloudflare's cache.
Hope it's useful!

Related Posts

Related Posts