spring-framework/src/docs/asciidoc/web
Brian Clozel a0af552d0f Add option for ignoring last-modified for static resources
Prior to this commit, the resource handler serving static resources for
Spring MVC and Spring WebFlux would always look at the
`Resource#lastModified` information, derive the `"Last-Modified"` HTTP
response header and support HTTP conditional requests with that
information.

In some cases, builds or packaging tools choose to set this last
modification date to a static date in the past. This allows tools to
have reproducible builds or to leverage caching given the static
resources content didn't change.

This can lead to problems where this static date (e.g. "1980-01-01") is
used literally in HTTP responses and will make the HTTP caching
mechanism counter-productive: the content of the resources changed, but
the application insists on saying it didn't change since the 80s...

This commit adds a new configuration option to disable this support -
there is no way to automatically discard those dates: there is no
standard for that and many don't use he "EPOCH 0 date" as it can lead to
compatibility issues with different OSes.

Closes gh-25845
2020-10-06 16:30:35 +02:00
..
integration.adoc Fix Asciidoctor Warnings 2020-01-24 09:14:07 -06:00
web-uris.adoc Fix typo about URI Encoding in docs 2020-02-26 18:28:52 +00:00
webflux-cors.adoc Updates to CORS patterns contribution 2020-07-08 13:18:46 +03:00
webflux-functional.adoc Add no path HTTP method variants for route builder 2020-10-06 11:00:17 +02:00
webflux-view.adoc Update links between WebFlux and Web MVC 2019-11-26 21:50:01 +00:00
webflux-webclient.adoc WebTestClient documentation updates 2020-09-25 21:17:07 +01:00
webflux-websocket.adoc @EnableWebFlux setup supports WebSocketHandler 2020-08-31 21:15:17 +01:00
webflux.adoc DefaultPartHttpMessageReader reference docs 2020-09-28 10:19:49 +02:00
webmvc-client.adoc Update advice on RestTemplate 2020-02-11 14:02:50 +00:00
webmvc-cors.adoc Updates to CORS patterns contribution 2020-07-08 13:18:46 +03:00
webmvc-functional.adoc Add no path HTTP method variants for route builder 2020-10-06 11:00:17 +02:00
webmvc-test.adoc General doc revision: configuration updates, consistent formatting etc 2019-03-05 13:08:34 +01:00
webmvc-view.adoc Polishing 2020-06-17 13:35:14 +02:00
webmvc.adoc Add option for ignoring last-modified for static resources 2020-10-06 16:30:35 +02:00
websocket-intro.adoc URL Cleanup 2019-03-27 22:05:38 +01:00
websocket.adoc Fix typo in websocket.adoc 2020-08-22 22:56:36 +02:00