Linux Hosting (cPanel) Help

Which mod_pagespeed functions do you support?

Your Web Hosting (cPanel) account can use mod_pagespeed, an open-source module that optimizes Web pages and their resources for better performance. For more information, see Google's documentation.

You can enable it on your hosting account through a .htaccess file. Here's an example of the coding you can include in your .htaccess file to enable the Extend Cache function:

<IfModule pagespeed_module>
   ModPagespeed on
   ModPagespeedEnableFilters extend_cache
</IfModule>

You can enable the following functions using the ModPagespeedEnableFilters directive:

Functionpagespeed.conf Code
Extend Cacheextend_cache
Collapse Whitespacecollapse_whitespace
Combine CSScombine_css
Move CSS to HEADmove_css_to_head
Elide Attributeselide_attributes
Remove Commentsremove_comments

For more information about a mod_pagespeed function, click its link from the Function column.

Other Features of mod_pagespeed

You can also enable the following directives in the .htaccess file:

  • ModPagespeedDisallow
  • ModPagespeedAllow
  • ModPagespeedMapOriginDomain
  • ModPagespeedMapRewriteDomain

For more information about using these directives, see Using mod_pagespeed.

We are still testing any mod_pagespeed functions not yet listed for compatibility, performance, and reliability. Because mod_pagespeed is still in a beta offering, its features might change. We also cannot guarantee that any enabled modules will not conflict with your website's existing content.

Share this article