Title: Sitemap-Max-Entries
Tags: headers, sitemap, sitemap-headers, root-node

<p>
    The <b>Sitemap-Max-Entries</b> header can optionally be set on the
    <a href="{{node-url:directories/nodes}}">root node</a> to control the
    maximum number of entries that can show up in the generated sitemap.
</p>

<p>
    This field is optional. The default value is <i>50000</i>.
</p>

<p>
    If this field is set, the value must be an unsigned integer.
</p>

<p>
    This header will only have an effect if the
    {{node-link:headers/sitemap-url}} header is set on the root node.
</p>

<p>
    On this documentation site, the <b>Sitemap-Max-Entries</b> header is set
    on the root node to a value of <i>{{value:sitemap-max-entries}}</i>, like
    this:
</p>

<pre>Sitemap-Max-Entries: {{value:sitemap-max-entries}}</pre>

<p>
    This causes Uriel to limit the number of entries in the generated sitemap
    to {{value:sitemap-max-entries}} entries. You can see the generated
    sitemap here: <a href="{{value:sitemap-url}}">{{value:sitemap-url}}</a>
</p>

<p>
    On this documentation site, the maximum number of allowed sitemap entries
    is larger than the number of nodes that are eligible for inclusion in the
    sitemap, so you won&apos;t directly observe any effect without changing
    the value and rebuilding the site.
</p>

<p>
    The <b>Sitemap-Max-Entries</b> header can be useful for tuning the size
    of individual sitemap files when the {{node-link:headers/sitemap-index}}
    header is set to <i>true</i>.
</p>

<p>
    See the {{node-link:generated}} page for additional details about how to
    generate a sitemap. 
</p>

