|
@@ -90,7 +90,7 @@ Spring Security includes <<headers-cache-control,Cache Control>> headers by defa
|
|
|
However, if you actually want to cache specific responses, your application can selectively add them to the https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/server/reactive/ServerHttpResponse.html[ServerHttpResponse] to override the header set by Spring Security.
|
|
|
This is useful to ensure things like CSS, JavaScript, and images are properly cached.
|
|
|
|
|
|
-When using Spring WebFluxZz, this is typically done within your configuration.
|
|
|
+When using Spring WebFlux, this is typically done within your configuration.
|
|
|
Details on how to do this can be found in the https://docs.spring.io/spring/docs/5.0.0.RELEASE/spring-framework-reference/web-reactive.html#webflux-config-static-resources[Static Resources] portion of the Spring Reference documentation
|
|
|
|
|
|
If necessary, you can also disable Spring Security's cache control HTTP response headers.
|