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 https://github.com/spring-projects/spring-boot/pull/43697#issuecomment-2811474524 and the discussion around it for background of this enhancement request.