Skip to content

Commit

Permalink
Merge pull request #397 from bannergress/enable-server-compression
Browse files Browse the repository at this point in the history
Enable server compression
  • Loading branch information
Poeschl authored Dec 23, 2024
2 parents 4e54849 + 82982ae commit 6544c73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
@Configuration
public class EtagConfiguration {
@Bean
public ShallowEtagHeaderFilter shallowEtagHeaderFilter() {
return new ShallowEtagHeaderFilter();
ShallowEtagHeaderFilter shallowEtagHeaderFilter() {
ShallowEtagHeaderFilter result = new ShallowEtagHeaderFilter();
result.setWriteWeakETag(true);
return result;
}
}
3 changes: 3 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ springdoc:
swagger-ui:
supported-submit-methods: []

server:
compression:
enabled: true

---
# This settings get activated when the 'dev' spring profile is active
Expand Down

0 comments on commit 6544c73

Please sign in to comment.