X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/3eefc3274dd672ee30ab7d2013446e08f9d58ff0..0a93b22c350a7c0f621065ada17d36a573dc04dc:/Controller/MapController.php?ds=sidebyside diff --git a/Controller/MapController.php b/Controller/MapController.php index 730fb72..5de1d82 100644 --- a/Controller/MapController.php +++ b/Controller/MapController.php @@ -35,13 +35,6 @@ class MapController extends AbstractController implements ServiceSubscriberInter */ protected string $cache; - /** - * The ContainerInterface instance - * - * @var ContainerInterface - */ - protected $container; - /** * The stream context instance */ @@ -294,6 +287,9 @@ class MapController extends AbstractController implements ServiceSubscriberInter //Set last modified $response->setLastModified(\DateTime::createFromFormat('U', strval($mtime))); + //Disable robot index + $response->headers->set('X-Robots-Tag', 'noindex'); + //Set as public $response->setPublic(); @@ -539,6 +535,9 @@ class MapController extends AbstractController implements ServiceSubscriberInter //Set last modified $response->setLastModified(\DateTime::createFromFormat('U', strval($mtime))); + //Disable robot index + $response->headers->set('X-Robots-Tag', 'noindex'); + //Set as public $response->setPublic();