Skip to content

Commit

Permalink
Add Google PageSpeed Insights to bot pattern
Browse files Browse the repository at this point in the history
Avoid multiple page redirects for better performance score: Redirects introduce additional delays before the page can be loaded. (https://web.dev/redirects/)
  • Loading branch information
Ergün authored Jul 7, 2020
1 parent 7eb1056 commit a38094e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Middleware/RedirectionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RedirectionMiddleware implements MiddlewareInterface
/**
* @var string
*/
protected $botPattern = '/bot|google|baidu|bing|msn|teoma|slurp|yandex/i';
protected $botPattern = '/bot|google|baidu|bing|msn|teoma|slurp|yandex|Chrome-Lighthouse/i';

/**
* Adds an instance of TYPO3\CMS\Core\Http\NormalizedParams as
Expand Down

0 comments on commit a38094e

Please sign in to comment.