spring-framework / org.springframework.web.reactive.config / ResourceHandlerRegistration / setCacheControl

setCacheControl

open fun setCacheControl(cacheControl: CacheControl): ResourceHandlerRegistration

Specify the CacheControl which should be used by the resource handler.

Parameters

cacheControl - the CacheControl configuration to use

Return
the same ResourceHandlerRegistration instance, for chained method invocation