Clarify how to prevent overwriting Cache-Control when @SessionAttribute is used [SPR-13598] #18176
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Tomoyuki Ikeya opened SPR-13598 and commented
#16413 and #7466 had many changes in Cache-Control headers.
One of the changes is to deprecate to set useCacheControlHeader as false with a comment "HTTP 1.1 cache-control header will be required, with the HTTP 1.0 headers disappearing".
On the other hand, we perhaps would like to prevent overwriting Cache-Control header by Spring MVC when using Spring Security and its <headers /> option.
My proposal is that setUseCacheControlHeader() should not be deprecated, or should provide other option that prevent overwriting it by Spring MVC.
Affects: 4.2 GA, 4.2.1, 4.2.2
Referenced from: commits 2b3ad21
2 votes, 3 watchers
The text was updated successfully, but these errors were encountered: