|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2012-2019 the original author or authors. |
|
|
|
* Copyright 2012-2025 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -28,7 +28,7 @@ import org.springframework.util.unit.DataSize; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class Compression { |
|
|
|
public class Compression { |
|
|
|
|
|
|
|
|
|
|
|
private boolean enabled = false; |
|
|
|
private boolean enabled; |
|
|
|
|
|
|
|
|
|
|
|
private String[] mimeTypes = new String[] { "text/html", "text/xml", "text/plain", "text/css", "text/javascript", |
|
|
|
private String[] mimeTypes = new String[] { "text/html", "text/xml", "text/plain", "text/css", "text/javascript", |
|
|
|
"application/javascript", "application/json", "application/xml" }; |
|
|
|
"application/javascript", "application/json", "application/xml" }; |
|
|
|
|