org.springframework.security.web.header.writers
Class CacheControlHeadersWriter
java.lang.Object
org.springframework.security.web.header.writers.StaticHeadersWriter
org.springframework.security.web.header.writers.CacheControlHeadersWriter
- All Implemented Interfaces:
- HeaderWriter
public final class CacheControlHeadersWriter
- extends StaticHeadersWriter
A StaticHeadersWriter
that inserts headers to prevent caching.
Specifically it adds the following headers:
- Cache-Control: no-cache, no-store, max-age=0, must-revalidate
- Pragma: no-cache
- Since:
- 3.2
CacheControlHeadersWriter
public CacheControlHeadersWriter()
- Creates a new instance