Skip to content

Commit

Permalink
jetty /static: Set cache-control header & Enable gzip (openhab#1542)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored May 25, 2023
1 parent b0778d0 commit 6cd2a1b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<New class="org.eclipse.jetty.server.handler.ResourceHandler">
<Set name="resourceBase"><SystemProperty name="openhab.conf" />/html</Set>
<Set name="directoriesListed">false</Set>
<Set name="cacheControl">max-age=31536000</Set>
</New>
</Set>
</New>
Expand All @@ -64,6 +65,7 @@
<Set name="includedPaths">
<Array type="java.lang.String">
<Item>/rest/*</Item>
<Item>/static/*</Item>
</Array>
</Set>
<Set name="includedMimeTypes">
Expand Down

0 comments on commit 6cd2a1b

Please sign in to comment.