If you have mod_pagespeed turned on for your server and need it turned off for a domain, here is what to do (for Apache).
Just put “ModPagespeed Off” (no quotes, of course) in the .htaccess file.
Better yet, use this:
<IfModule pagespeed_module> ModPagespeed off </IfModule>
Turn PageSpeed Off in a URL
To do this in a URL without modifying your .htaccess file, just add this to the end of a URL:
?ModPagespeed=off
If there already are some values in a URL, you may need to use this instead:
&ModPagespeed=off
For example:
http://cheatsheet.tonyherman.com/disable-mod_pagespeed-for-a-domain/?ModPagespeed=off
and:
http://cheatsheet.tonyherman.com/disable-mod_pagespeed-for-a-domain/?somevalue=1&ModPagespeed=off