public function xmlImageSitemapGz() { if (file_exists($this->metaService->getImageMapPath(true))) { header("Content-Encoding: gzip"); header("Content-Type: text/xml"); exit(file_get_contents($this->metaService->getImageMapPath(true))); } else { header("HTTP/1.0 404 Not Found"); exit('Sitemap generation in progress...'); } }