diff --git a/config/module.config.php b/config/module.config.php index 4238d8e..6ca6aaa 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -33,17 +33,47 @@ 'googlebot', 'yahoo', 'bingbot', - 'baiduspider' + 'baiduspider', + 'facebookexternalhit' ), // Ignored extensions 'ignored_extensions' => array( - '.css', - '.gif', - '.jpeg', - '.jpg', '.js', + '.css', + '.less', '.png', + '.jpg', + '.jpeg', + '.gif', + '.pdf', + '.doc', + '.txt', + '.zip', + '.mp3', + '.rar', + '.exe', + '.wmv', + '.doc', + '.avi', + '.ppt', + '.mpg', + '.mpeg', + '.tif', + '.wav', + '.mov', + '.psd', + '.ai', + '.xls', + '.mp4', + '.m4a', + '.swf', + '.dat', + '.dmg', + '.iso', + '.flv', + '.m4v', + '.torrent' ), // Whitelist and blacklist diff --git a/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php b/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php index 12ecec7..a84ac81 100644 --- a/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php +++ b/tests/ZfrPrerenderTest/Factory/ModuleOptionsFactoryTest.php @@ -37,8 +37,7 @@ public function testCanCreateOptions() $this->assertInstanceOf('ZfrPrerender\Options\ModuleOptions', $options); $this->assertEquals('http://prerender.herokuapp.com', $options->getPrerenderUrl()); - $this->assertEquals(array('googlebot', 'yahoo', 'bingbot', 'baiduspider'), $options->getCrawlerUserAgents()); - $this->assertEquals(array('.css', '.gif', '.jpeg', '.jpg', '.js', '.png'), $options->getIgnoredExtensions()); + $this->assertEquals(array('googlebot', 'yahoo', 'bingbot', 'baiduspider', 'facebookexternalhit'), $options->getCrawlerUserAgents()); $this->assertEmpty($options->getWhitelistUrls()); $this->assertEmpty($options->getBlacklistUrls()); }