Fix condition in ServletInvocableHandlerMethod
Closes gh-23775
This commit is contained in:
@@ -165,7 +165,7 @@ public class ServletInvocableHandlerMethod extends InvocableHandlerMethod {
|
||||
}
|
||||
|
||||
private void disableContentCachingIfNecessary(ServletWebRequest webRequest) {
|
||||
if (!isRequestNotModified(webRequest)) {
|
||||
if (isRequestNotModified(webRequest)) {
|
||||
HttpServletResponse response = webRequest.getNativeResponse(HttpServletResponse.class);
|
||||
Assert.notNull(response, "Expected HttpServletResponse");
|
||||
if (StringUtils.hasText(response.getHeader("ETag"))) {
|
||||
|
||||
Reference in New Issue
Block a user