Skip to content

Add the ability to limit ContentCachingResponseWrapper cache size #35577

@vpavic

Description

@vpavic

It would be nice if ContentCachingResponseWrapper could support setting a limit to its cache so that response body is cached only up to this limit. This could be beneficial for the existing ShallowEtagHeaderFilter and other use case that leverage ContentCachingResponseWrapper.

See spring-projects/spring-boot#43697 (comment) and the discussion around it for background of this enhancement request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions