Changeset View
Changeset View
Standalone View
Standalone View
src/applications/system/controller/PhabricatorRobotsController.php
Show All 26 Lines | public function processRequest() { | ||||
// seems like a reasonable tradeoff, since most Phabricator installs are | // seems like a reasonable tradeoff, since most Phabricator installs are | ||||
// probably not hugely concerned about cutting-edge SEO. | // probably not hugely concerned about cutting-edge SEO. | ||||
$out[] = 'Crawl-delay: 1'; | $out[] = 'Crawl-delay: 1'; | ||||
$content = implode("\n", $out)."\n"; | $content = implode("\n", $out)."\n"; | ||||
return id(new AphrontPlainTextResponse()) | return id(new AphrontPlainTextResponse()) | ||||
->setContent($content) | ->setContent($content) | ||||
->setCacheDurationInSeconds(phutil_units('2 hours in seconds')); | ->setCacheDurationInSeconds(phutil_units('2 hours in seconds')) | ||||
->setCanCDN(true); | |||||
} | } | ||||
} | } |