Disable google weblight for wordpress and Google Blogspot

GoogleWeblight is used to improve the browsing experience of user who are all having slow network connections. GoogleWeblight remove all our hard css styles and display a content of our page with minimal css styles. Google also provide an option for remove this view by click the link of ‘View original‘ in the header.

GoogleWeblight also create a bad impression about your website design to the user who are all come to your page from search and our page also displayed with label like “slow to load” in search reslut. But it wont stop google Adsense ads in your page.

You can set HTTP header for Cache-Control to opt out from this techniques when user comes with slow network.

In php,
Add the below code to top of the page which you want to avoid GoogleWeblight.

header('Cache-Control: no-transform');

You can also set a Cache Control in .htaccess file.
In .htaccess

Header set Cache-Control "no-transform"

You can manually test this by append your page url with the below link and open it in browser

For Google blogspot,

Add below meta tag in theme header

<meta http-equiv="cache-control" content="no-cache, must-revalidate">

Leave a Reply

Your email address will not be published. Required fields are marked *