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?
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 aLast-Modifiedheader.Looking at the source, the property only seems to be used in
WebFluxAutoConfigurationand not inWebMvcAutoConfiguration(https://github.com/spring-projects/spring-boot/search?q=setuselastmodified). Is this intentional or an oversight?