Pagespeed Modules That Automatically Optimizes Your Website

Linux-based Web Hosting accounts at SANGKRIT.net can useĀ mod_pagespeed, which is a free software module for optimizing web pages and their resources for better performance. For more information, seeĀ Google’s documentation.

These can be enabled on your cPanel hosting viaĀ .htaccessĀ file. For instance, see the following example of the code which you can include in your .htaccess file to enable the Extend Cache function:

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

Following functions can be enabled using theĀ ModPagespeedEnableFiltersĀ directive:

Function pagespeed.conf Code
Extend Cache extend_cache
Collapse Whitespace collapse_whitespace
Combine CSS combine_css
Move CSS to HEAD move_css_to_head
Elide Attributes elide_attributes
Remove Comments remove_comments

 

The above-given table also links mod_pagespeedĀ function at Google for more information. There are more features of mod_pagespeed, you can also enable the following directives on your website’s .htaccessĀ file located in your site’s root directory:

  • ModPagespeedDisallow
  • ModPagespeedAllow
  • ModPagespeedMapOriginDomain
  • ModPagespeedMapRewriteDomain

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

System at SANGKRIT.net is still testing anyĀ mod_pagespeedĀ functions not yet listed for compatibility, performance, and reliability as mod_pagespeedĀ is still in a beta offering, so the features might change.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.