Ticket #1646 (new enhancement)
sitemaps.xml: Allow gzip support, cache?
| Reported by: | smagnusson | Owned by: | wscott |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | CMS - General | Version: | |
| Severity: | medium effort / impact | Keywords: | |
| Cc: | Hours: |
Description
Google's suggestion in the sitemaps protocol is to provide it as a .gz file, and not just as an .xml file carried over mod_deflate.
Enable support for accessing /sitemap.gz (or is sitemap.xml.gz?)
This will increase the CPU load for producing the sitemap, and so it would be best for this to be cached, say to /assets/.sitemap.xml.gz
E.g.
if (cachefile < 1 hour old OR ?flush=1 ) create-xml-file-and-save-to-gzipped-cache-file()
header temporary redirect to cache file()
Does the protocol support putting a comment inside the xml file to say the generation time?
Change History
Note: See
TracTickets for help on using
tickets.
