Skip to content

WebContentInterceptor.preHandle(request, response, handler), handler of type HandlerMethod not controller instance [SPR-9248] #13886

Closed
@spring-projects-issues

Description

@spring-projects-issues

tam sayers opened SPR-9248 and commented

In WebContentInterceptor.preHandle(request, response, handler), the handler type is evaluated for instanceof LastModified to eventually determine whether to add the must-revalidate Cache-Control header or not. The given handler instance is of type HandlerMethod, not the controller instance, so even if the controller implements LastModified when the point is reached to add the header it never is!


Affects: 3.1.1

Issue Links:

Referenced from: commits 68d4a70

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