1. Home
  2. Web Content
  3. Disabling PageSpeed

Disabling PageSpeed

Overview

In rare certain situations, PageSpeed may make debugging a staging site more difficult or interfere with custom JavaScript that manipulates the DOM in a HEAD tag. Although likely unnecessary to disable, PageSpeed may be disabled on your site with a simple htaccess directive:

  1. Create a file named .htaccess in the document root of the affected web site
  2. Add the following line to the end of the file:
    ModPagespeed off

Important: disabling PageSpeed support will disable automatic Google Analytics integration. Instead of disabling PageSpeed, consider disabling the conflicting processing rule, e.g. to disable CSS rewriting:

ModPagespeedDisableFilters rewrite_css

Updated on March 7, 2021

Related Articles