how to stop using google page speed

点点圈 提交于 2019-11-29 23:12:27

It looks like mod_pagespeed is installed on the host.

If you don't have access to disable it for your site, you can add ?ModPagespeed=off to the end of your URL in the browser like this

http://dev.eatfit.co.nz/?ModPagespeed=off

If you look in your apache conf.d directory (mine is at /etc/httpd/conf.d), you should see a file called pagespeed.conf. To completely disable the service, find the line that says:

ModPagespeed on

and change it to:

ModPagespeed off

... then restart your httpd service with "service httpd restart".

Those two replies are both accurate - The answer is yes it is an apache module installed by the hosting company on all accounts - to turn it off you can add the line below in your .htaccess file:

ModPagespeed off

By the look of it, it is a module for apache, so it might be installed on your hosting server, I would contact your host if you haven't asked for it.

I can confirm all the answers listed above. It looks like you've indeed turned it off via your .htaccess file. However I would like to know what functional problems you ran into with the CSS. I could not detect any visual difference on your home page with & without mod_pagespeed. If you found a bug we'd like to fix it.

It is true that it adds caching to your resources, but the server checks for changes every 5 minutes if you don't have an explicit TTL and writes out URLs with new content-hashes whenever the data changes. Even that 5-minute delay can admittedly get annoying while developing, but there is a relatively new feature: ModPagespeedLoadFromFile which makes deveoping with mod_pagespeed on much smoother and also improves server performance.

The benefits of all of this are that there are many fewer round-trips to your server and significantly lower latency to your end-users. Check out webpagetest results:

Video, mod_pagespeed on, mod_pagespeed off

Also, would you mind telling me what hosting provider you use that turns mod_pagespeed on by default? Thanks!

For me it worked like this(Beware it would turn off pagespeed for all requests, no querystring ) :

vim /etc/apache2/mods-available/pagespeed.conf
#ModPagespeed on
ModPagespeed unplugged
:wq

I am commenting ModPagespeed on , and adding ModPagespeed unplugged line here. Hope it helps.

Need to change in pagespeed.conf file from on to off

ModPagespeed off 

Location of the file in Ubuntu/Debian

/etc/apache2/conf.d/pagespeed.conf

Location of the file in CentOS/httpd

/etc/httpd/conf.d/pagespeed.conf

Dont Forgot to restart apache or httpd services.

for individual website via .htaccess

ModPagespeed off 

And if you want pagespeed to stop changing your filenames ad this filter:

pagespeed InPlaceResourceOptimization on;

See here about that. Chapter is called "In-Place Resource Optimization"

Also if you define static files you will see changes right away and improve performance. See here about that. Seek chapter "Loading static files from disk"

Diego Bolina

on my lamp installation on Elementary OS , the conf file of pagespeed is on

lampstack-(yourversion)/apache2/conf/pagespeed.conf
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!