Skip to content

Commit 82982ae

Browse files
committed
Enable server compression
1 parent 7972f4f commit 82982ae

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: src/main/java/com/bannergress/backend/config/EtagConfiguration.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
@Configuration
1111
public class EtagConfiguration {
1212
@Bean
13-
public ShallowEtagHeaderFilter shallowEtagHeaderFilter() {
14-
return new ShallowEtagHeaderFilter();
13+
ShallowEtagHeaderFilter shallowEtagHeaderFilter() {
14+
ShallowEtagHeaderFilter result = new ShallowEtagHeaderFilter();
15+
result.setWriteWeakETag(true);
16+
return result;
1517
}
1618
}

Diff for: src/main/resources/application.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ springdoc:
3434
swagger-ui:
3535
supported-submit-methods: []
3636

37+
server:
38+
compression:
39+
enabled: true
3740

3841
---
3942
# This settings get activated when the 'dev' spring profile is active

0 commit comments

Comments
 (0)