incubator-pagespeed-ngx
incubator-pagespeed-ngx copied to clipboard
Disable pagespeed optimization for specific user agent
trafficstars
Is it possible to disable some or all optimizations for a certain user agent (crawler)? When it crawls the site, CPU usage for the nginx process is getting too high primarily because of the pagespeed module.
Hi @AlexeyKosov Have you tried the DisableBackgroundFetchesForBots filter? Or you can use some like if ($http_user_agent ~* "^xxx$") { pagespeed unpluged; }