openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
213 stars 234 forks source link

Deliver compressed files, when the request has `Accept-Encoding: gzip, deflate, br` #2481

Open dilyanpalauzov opened 3 months ago

dilyanpalauzov commented 3 months ago

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 returning compressed files and the header Content-Encoding:.

As shown at https://github.com/openhab/openhab-webui/issues/1432 the server does generate gz files, but these are not returned when the request has the Accept-Encoding: gzip, deflate, br header in OH 4.1.1. The files are returned, when the request URI ends in .gz.