Class CacheControlServerHttpHeadersWriter

java.lang.Object
org.springframework.security.web.server.header.CacheControlServerHttpHeadersWriter
All Implemented Interfaces:
ServerHttpHeadersWriter

public class CacheControlServerHttpHeadersWriter extends Object implements ServerHttpHeadersWriter
Writes cache control related headers.
 Cache-Control: no-cache, no-store, max-age=0, must-revalidate
 Pragma: no-cache
 Expires: 0
 
Since:
5.0
  • Field Details

  • Constructor Details

    • CacheControlServerHttpHeadersWriter

      public CacheControlServerHttpHeadersWriter()
  • Method Details

    • writeHttpHeaders

      public reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
      Description copied from interface: ServerHttpHeadersWriter
      Write the headers to the response.
      Specified by:
      writeHttpHeaders in interface ServerHttpHeadersWriter
      Returns:
      A Mono which is returned to the Supplier of the ReactiveHttpOutputMessage.beforeCommit(Supplier).