Browse Source

add gzip encoding to compress resource

herlanS_ 4 years ago
parent
commit
b3c54f66e4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/resources/application.yml

+ 6 - 1
src/main/resources/application.yml

@@ -1 +1,6 @@
-
+server:
+  compression:
+    enabled: true
+    excluded-user-agents:
+    mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,image/jpeg,image/png
+    min-response-size: 2048