SitemapGenerator is a framework-agnostic XML Sitemap generator written in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing your sitemaps, as well as many other great features.
MIT License
2.44k
stars
276
forks
source link
Sitemap.xml.gz is not being compressed while uploading to S3 #435
After calling SitemapGenerator::Sitemap.create I got a file named sitemap.xml.gz. Then I would like to upload the file to a S3 storage but in SitemapGenerator::S3Adapter there's not any logic related to compressing and I got an uncompressed file with .gz extension as a result. The only place where compression is performed is SitemapGenerator::FileAdapter. So why there's no any gzipping in other adapters?
After calling
SitemapGenerator::Sitemap.create
I got a file namedsitemap.xml.gz
. Then I would like to upload the file to a S3 storage but inSitemapGenerator::S3Adapter
there's not any logic related to compressing and I got an uncompressed file with.gz
extension as a result. The only place where compression is performed isSitemapGenerator::FileAdapter
. So why there's no any gzipping in other adapters?