Publish Sitemap Configuration
To generate Gzip sitemap you will have to publish the sitemap configuration.
php artisan vendor:publish --provider="Laravelium\Sitemap\SitemapServiceProvider"
Now you can update whether to use the Gzip compression or not from the config from "sitemap.php" file. Set the "use_gzip" configuration to "true" and now when you generate the sitemap you will have it in "gzip" format.
<?php /* Simple configuration file for Laravel Sitemap package */ return [ 'use_cache' => false, 'cache_key' => 'laravel-sitemap.'.config('app.url'), 'cache_duration' => 3600, 'escaping' => true, 'use_limit_size' => false, 'max_size' => null, 'use_styles' => true, 'styles_location' => '/vendor/sitemap/styles/', 'use_gzip' => true ];
Leave a reply