Sitemap
  • 22 Sep 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Sitemap

  • Dark
    Light
  • PDF

Functionality

The Prerender worker can identify subsequent sitemaps once the main one is added and activated in the Sitemaps section. However, it cannot individually crawl subsequent maps to cache URLs contained in them.
A different Prerender process will identify sitemaps based on the URLs you have in the cache and add them to the Dashboard's Sitemaps section.

Upload sitemap

Dashboard

To upload the sitemap into your Prerender.io account, use the Import Sitemap feature on your Prerender.io Dashboard on the Cache Manager page.
Type the sitemap's location in the text box and press Import, and Prerender.io will download and analyze the sitemap file.

API

To upload a sitemap from the API, use the "https://api.prerender.io/sitemap" endpoint.
For details, please see Prerender API doc.

Process:

  1. Prerender.io downloads the site map from the server using the Prerender user agent.
  2. Adds < url >...< /url > URLs to the cache (if the URL is already in the cache, it skips this step).
  3. Downloads and processes the additional < sitemap>...</ sitemap> sitemaps.

Supported format

Prerender.io supports the standard sitemap XML format, described in sitemaps.org.

Example sitemaps

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://prerender.io/post-sitemap.xml</loc>
		<lastmod>2022-02-22T18:43:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://prerender.io/page-sitemap.xml</loc>
		<lastmod>2022-01-26T11:54:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://prerender.io/category-sitemap.xml</loc>
		<lastmod>2022-02-22T18:43:59+00:00</lastmod>
	</sitemap>
</sitemapindex>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<url>
		<loc>https://prerender.io/blog/</loc>
		<lastmod>2022-02-22T18:43:59+00:00</lastmod>
	</url>
	<url>
		<loc>https://prerender.io/angular-vs-react-seo/</loc>
		<lastmod>2021-05-13T17:51:23+00:00</lastmod>
	</url>
	<url>
		<loc>https://prerender.io/what-you-need-to-know-about-google-page-experience/</loc>
		<lastmod>2021-06-11T16:25:41+00:00</lastmod>
	</url>
</urlset>

Was this article helpful?