Skip to content

Commit e0fddfe

Browse files
authored
gzip compress assets and images (#1884)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
1 parent 7abae8b commit e0fddfe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • distributions/openhab/src/main/resources/runtime/etc

distributions/openhab/src/main/resources/runtime/etc/jetty.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,22 @@
6464
<Set name="minGzipSize">1024</Set>
6565
<Set name="includedPaths">
6666
<Array type="java.lang.String">
67+
<Item>/assets/*</Item>
68+
<Item>/images/*</Item>
6769
<Item>/rest/*</Item>
6870
<Item>/static/*</Item>
6971
</Array>
7072
</Set>
7173
<Set name="includedMimeTypes">
7274
<Array type="java.lang.String">
75+
<Item>application/javascript</Item>
7376
<Item>application/json</Item>
77+
<Item>image/svg+xml</Item>
78+
<Item>text/css</Item>
7479
<Item>text/html</Item>
80+
<Item>text/javascript</Item>
7581
<Item>text/plain</Item>
82+
<Item>text/xml</Item>
7683
</Array>
7784
</Set>
7885
</New>

0 commit comments

Comments
 (0)