This is an old revision of the document!


How To Enable PageSpeed In LiteSpeed ADC

Login into LiteSpeed ADC webadmin console, Configuration → Server → PageSpeed

Load Module: This is master switch, must be enabled to activate PageSpeed, otherwise none of following setting will take effect.

Enable PageSpeed: This can be either server level or vhost level , vhost level will override server level.

PageSpeed Settings: PageSpeed settings, this wiki uses following as example:

pagespeed FileCachePath /tmp/lshttpd/pagespeed;
pagespeed RewriteLevel CoreFilters;

Please be aware, improper settings may break content of sites or some static files like JS/CSS.

In this example uses same setting as server level setting.

After all settings are configured, graceful restart LiteSpeed ADC to take effect.

We can verify PageSpeed by checking HTTP response header.

This is before PageSpeed is activated, we can see the page size is 254 KB and 17 requests.

This is after PageSpeed is activated, we can see the page size is reduced to 196 KB and request to 14 requests, also we can see there is x-ls-pagespeed header now

If your site uses LiteSpeed Cache , then you would probably wonder , should I turn on both PageSpeed and LiteSpeed Cache at same time?

The answer to this question, please refer this wiki

  • Admin
  • Last modified: 2018/07/05 12:13
  • by qtwrk