[java-idp-jetty-base] 01/02: JJETTY-10 Enable support for precompressed content in static folder.

Rod Widdowson rdw at steadingsoftware.com
Tue Nov 11 19:28:46 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch 12.1
in repository java-idp-jetty-base.

View the commit online:
https://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=fce06a667d28884bd5dc511e693cdf30aea69674

commit fce06a667d28884bd5dc511e693cdf30aea69674
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Nov 11 19:22:38 2025 +0000

    JJETTY-10 Enable support for precompressed content in static folder.
    
    https://shibboleth.atlassian.net/browse/JJETTY-10
    
    Add the supplied parameters to the ResourceHandler created inside static.xml
---
 .../idp/module/jetty/jetty-base/webapps/static.xml         | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/main/resources/net/shibboleth/idp/module/jetty/jetty-base/webapps/static.xml b/src/main/resources/net/shibboleth/idp/module/jetty/jetty-base/webapps/static.xml
index 2fa6c00..7841c5f 100644
--- a/src/main/resources/net/shibboleth/idp/module/jetty/jetty-base/webapps/static.xml
+++ b/src/main/resources/net/shibboleth/idp/module/jetty/jetty-base/webapps/static.xml
@@ -9,6 +9,20 @@
     <New class="org.eclipse.jetty.server.handler.ResourceHandler">
       <Set name="baseResourceAsString"><SystemProperty name="idp.home"/>/static</Set>
       <Set name="dirAllowed">false</Set>
+      <Set name="precompressedFormats">
+        <Array id="ccfList" type="org.eclipse.jetty.http.CompressedContentFormat">
+          <Item>
+            <New class="org.eclipse.jetty.http.CompressedContentFormat">
+              <Arg type="String">br</Arg><Arg type="String">.br</Arg>
+            </New>
+          </Item>
+          <Item>
+            <New class="org.eclipse.jetty.http.CompressedContentFormat">
+              <Arg type="String">gzip</Arg><Arg type="String">.gz</Arg>
+            </New>
+          </Item>
+        </Array>
+      </Set>
     </New>
   </Set>
 </Configure>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list