Skip to content

Commit

Permalink
💥 Change - replaced user agent with Googlebot identifier to allow thr…
Browse files Browse the repository at this point in the history
…ough systems such as Cloudflare and made visual difference use the same setting
  • Loading branch information
Owen Melbourne committed Nov 13, 2020
1 parent bfd1102 commit ea72140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Checkers/VisualDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private function fetch()
try {
Browsershot::url($this->url)
->windowSize(1440, 1024)
->userAgent(config('app.user_agent'))
->fullPage()
->waitUntilNetworkIdle()
->setDelay(5000)
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

'user_agent' => env('USER_AGENT', 'Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/; Odin)'),
'user_agent' => env('USER_AGENT', 'Mozilla/5.0+(compatible; Googlebot/2.1; +http://www.google.com/bot.html; +Odin)'),

// How many days of uptime to report on? This effects DB performance.
'max_uptime_age' => env('MAX_UPTIME_AGE', 90),
Expand Down

0 comments on commit ea72140

Please sign in to comment.