-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation taskA documentation task
Milestone
Description
Affects: 5.2.0.RELEASE
Original issue: spring-projects/spring-boot#18931
Registering ShallowEtagHeaderFilter with default configuration breaks async web requests, causing timeouts:
@Bean
public Filter etagFilter() {
return new ShallowEtagHeaderFilter();
}
The correct configuration is:
@Bean
public FilterRegistrationBean<ShallowEtagHeaderFilter> etagFilter() {
FilterRegistrationBean<ShallowEtagHeaderFilter> registration = new FilterRegistrationBean<>(new ShallowEtagHeaderFilter());
registration.setDispatcherTypes(EnumSet.of(DispatcherType.REQUEST, DispatcherType.ASYNC));
return registration;
}
Please update the documentation to include this configuration for async requests, or provide a way to automatically configure for async requests.
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation taskA documentation task