Skip to content

Commit 26825f1

Browse files
author
Theus Hossmann
committed
enable compression for json files
1 parent 37435a7 commit 26825f1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

resources/tomcat/conf/server.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
<Listener className='org.apache.catalina.core.JasperListener'/>
2222

2323
<Service name='Catalina'>
24-
<Connector port='${http.port}' bindOnInit="false"/>
24+
<Connector
25+
port='${http.port}'
26+
bindOnInit="false"
27+
compressableMimeType="text/html,text/xml,text/plain,application/json,application/javascript"
28+
compression="on"/>
2529

2630
<Engine defaultHost='localhost' name='Catalina'>
2731

0 commit comments

Comments
 (0)