openhab-webui
openhab-webui copied to clipboard
Deliver compressed in advance static files over HTTP
When requesting a web page, the browser sends the header Accept-Encoding: gzip, deflate, br. The web server can then reduce the transferred data, by submitting compressed files.
Please create for the static content - JavaScript, SVG, CSS - compressed files, during the bundles are bundled, and include the compressed files in the generated bundles. Then tell Jetty to deliver to the browser the compressed content for requested resources, if the compressed content is available on the server. This will increase the load times of openHAB webpages.
Nota Bene: Firefox does not send br in case of insecure connections.