Phil Webb opened SPR-17013 and commented
Originally raised in the Spring Boot issue tracker (#13715):
We are facing an issue where even we set all appropriate options delineated at: https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html the caching still does not work completely on Firefox. The goal is to have static files cached on local browser for users, with no re-fetching if the cache has not expired. Whereas what we see is that the cache gets invalidated every other time (caches only half of the time, and the response code flip-flops between 200 and 304). Turns out that firefox relies on
cache-control: immutableto make sure the cache does not get invalidated.Looking at https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/CacheControl.html , there is no option to set that
immutableflag, is it possible to add the option?
No further details from SPR-17013
Comment From: spring-projects-issues
Brian Clozel commented
While this feature is supported by Firefox, Safari and Edge, it is still considered as experimental. Also, the Chromium team decided against it so it is not supported with that browser.
For those reasons, I'm leaving this issue opened, but unscheduled for now.
Comment From: bclozel
Browser support is still very poor and won't change apparently. I'm closing this issue now. We can revisit this decision if the situation changes.