Skip to content

sitemap.xml: reduce a number of spaces #1438

Closed
@php-coder

Description

@php-coder

At this moment, sitemap.xml is optimized for human readability but it contains a lot of spaces that we can remove in order to make a file smaller.

So, instead of

<url>
        <loc>https://my-stamps.ru/series/6</loc>
        <lastmod>2014-02-12T00:08+04:00</lastmod>
</url>
<url>
        <loc>https://my-stamps.ru/series/7</loc>
        <lastmod>2017-11-08T00:27+03:00</lastmod>
</url>

we can write it like this:

<url><loc>https://my-stamps.ru/series/6</loc><lastmod>2014-02-12T00:08+04:00</lastmod></url>
<url><loc>https://my-stamps.ru/series/7</loc><lastmod>2017-11-08T00:27+03:00</lastmod></url>

It still readable but more compact.

Another idea is to remove an indentation before <url>.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions