Relax SPR-13867 changes for ResourceHttpRequestHandler
Prior to this change, SPR-13867 made sure that any class extending
WebContentGenerator would not overwrite existing HTTP "Cache-Control"
response headers - set by a filter, a Controller handler, etc.
This caused issues with resource handling, since specifying a cache
configuration there would not overwrite default headers set by filters,
for example by Spring Security.
This commit restricts the previous changes to the
RequestMappingHandlerAdapter, in order to avoid overwriting header set
by a filter or a Controller handler in those cases.
Issue: SPR-14005
@ -747,11 +747,13 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@@ -747,11 +747,13 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@ -895,7 +897,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@@ -895,7 +897,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
@ -148,10 +148,10 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -148,10 +148,10 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -188,12 +188,12 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -188,12 +188,12 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -229,7 +229,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -229,7 +229,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -246,7 +246,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -246,7 +246,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -262,7 +262,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -262,7 +262,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -282,7 +282,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -282,7 +282,7 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@ -357,27 +357,27 @@ public class RequestMappingHandlerAdapterIntegrationTests {
@@ -357,27 +357,27 @@ public class RequestMappingHandlerAdapterIntegrationTests {