Enable gzip compression of webGUI



  • Currently using 1.2-BETA-1-TESTING-SNAPSHOT-05-23-2007.

    Pages served from the webConfigurator are uncompressed. Making an option to have the pages served by webConfigurator will reduce the b/w used when accessing over a WAN link.

    Gzip compression can be enabled on a page by page basis by enabling the zlib extension and placing ob_start("ob_gzhandler"); on pages that are likely to gain most from compression, system logs, rules list, state list etc.



  • It will also add extra CPU load.



  • Gzip isn't a particularly great load, it's not like the pages are being hit all the time.

    You can add make it optional as I said. I would have made the changes to mine already, but I lack the compiled zlib modules for PHP in this particular release.



  • Whether to use gzipped HTML pages is always a question whether to focuse on server load or on bandwidth.

    I think providing a knob that allows to enable/disable compression is a valid option.

    Cheers
    Daniel S. Haischt

    PS: gzip compression is enabled in pfSense HEAD.


Log in to reply