Skip to content

Clarify how to prevent overwriting Cache-Control when @SessionAttribute is used [SPR-13598] #18176

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions