Skip to content

'spring.web.resources.cache.use-last-modified=false' doesn't work with Spring MVC #26212

@fbuechler

Description

@fbuechler

We're using Spring Boot 2.4.4 with Spring MVC to build an application that serves static resources. We noticed that although we set spring.web.resources.cache.use-last-modified=false, the server adds a Last-Modified header.
Looking at the source, the property only seems to be used in WebFluxAutoConfiguration and not in WebMvcAutoConfiguration (https://github.com/spring-projects/spring-boot/search?q=setuselastmodified). Is this intentional or an oversight?

Metadata

Metadata

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions