X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/3eefc3274dd672ee30ab7d2013446e08f9d58ff0..7aa6c5a37309a0b063e58a258f28b2561204fed3:/Controller/MapController.php diff --git a/Controller/MapController.php b/Controller/MapController.php index 730fb72..6ebb810 100644 --- a/Controller/MapController.php +++ b/Controller/MapController.php @@ -294,6 +294,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 +542,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();