how to stop using google page speed

后端 未结 9 1641
时光说笑
时光说笑 2020-12-24 08:02

I have a wordpress website I\'m creating for a client temporarily hosted on http://dev.eatfit.co.nz/

I\'m noticing that often (but not every time) that I browse a pa

相关标签:
9条回答
  • 2020-12-24 08:18

    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".

    0 讨论(0)
  • 2020-12-24 08:18

    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.

    0 讨论(0)
  • 2020-12-24 08:19

    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

    0 讨论(0)
  • 2020-12-24 08:22

    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"

    0 讨论(0)
  • 2020-12-24 08:25

    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!

    0 讨论(0)
  • 2020-12-24 08:33

    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 
    
    0 讨论(0)
提交回复
热议问题