apachemod-pagespeedmod-deflate

Benefits of mod_pagespeed over mod_deflate


The SO post here explains what mod_pagespeed does, but I'm wondering if I would notice any significant difference in page load time with this installed on a server that is already using mod_deflate to compress files.

If it is worth installing, are there any special considerations to take into account with regards to configuration when running both modules, or should one replace the other? The server is running EasyApache4.


Solution

  • Yes you will because these modules do different things.

    mod_deflate handles data compression

    The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.

    Simply put, its sole purpose is to reduce the amount of bytes sent for your server regardless of what kind of data is sent

    mod_pagespeed performs optimizations that would speed up the resulting webpage performance from end user's perspective by following a bunch of web pages optimization best-practices

    Here's a simple example:

    Such optimizations of the original .html page and its dependent resources may have a huge difference in terms of execution time especially on slow mobile networks

    So the idea is to always enable mod_deflate and either apply these best-practices manually or use mod_pagespeed which would apply them automatically