• Brian Clozel's avatar
    Add spring.web.resources.cache.use-last-modified · f0a6128d
    Brian Clozel authored
    Prior to this commit, packaging a Spring Boot application as a container
    image with Cloud Native Buildpacks could result in unwanted browser
    caching behavior, with "Last-Modified" HTTP response headers pointing to
    dates in the far past.
    
    This is due to CNB resetting the last-modified date metadata for static
    files (for build reproducibility and container layer caching) and Spring
    static resource handling relying on that information when serving static
    resources.
    
    This commit introduces a new configuration property
    `spring.web.resources.cache.use-last-modified` that can be used to
    disable this behavior in Spring if the application is meant to run as a
    container image built by CNB.
    
    The default value for this property remains `true` since this remains
    the default value in Spring Framework and using that information in
    other deployment models is a perfectly valid use case.
    
    Fixes gh-24099
    f0a6128d
Name
Last commit
Last update
..
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-configuration-metadata.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix-test-auto-configuration.adoc Loading commit data...
attributes.adoc Loading commit data...
authors.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
index.singleadoc Loading commit data...
legal.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...