Skip to content

Enable brotli compression on hxldash.com #85

@fititnt

Description

@fititnt

refs


Since the response headers of hxldash.com give a hint that the server version is Server: Apache/2.4.29 (Ubuntu) and Apache Module mod_brotli have compatibility of Available in version 2.4.26 and later seems to be a good idea enable brotli compression.

From https://www.brotli.pro/enable-brotli/apache/, the minimum steps would be:

  1. run a2enmod brotli as root
  2. Add AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript on the Apache VirtualHost of hxldash.com

One thing we could do is take at least the home page of hxldash.com and one or two dashboards (maybe the common case, and maybe one with lots of data that could be compressed, like the geojsons) and inspect the before/after on the pagesize.

Since is possible to force fake request headers, this could be done after brotli already was enabled.


PS.: I can confirm that the https://proxy.hxlstandard.org/data/source does not have brotli enabled (but the response header says server: nginx, so as commented here #66 (comment) it may be less simple to suggest implementation there)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions