Uses of Class
org.springframework.http.CacheControl
Packages that use CacheControl
Package
Description
Contains a basic abstraction over client/server-side HTTP.
-
Uses of CacheControl in org.springframework.http
Methods in org.springframework.http that return CacheControlModifier and TypeMethodDescriptionCacheControl.cachePrivate()
Add a "private" directive.CacheControl.cachePublic()
Add a "public" directive.static CacheControl
CacheControl.empty()
Return an empty directive.CacheControl.immutable()
Add an "immutable" directive.static CacheControl
Add a "max-age=" directive.static CacheControl
Add a "max-age=" directive.CacheControl.mustRevalidate()
Add a "must-revalidate" directive.static CacheControl
CacheControl.noCache()
Add a "no-cache" directive.static CacheControl
CacheControl.noStore()
Add a "no-store" directive.CacheControl.noTransform()
Add a "no-transform" directive.CacheControl.proxyRevalidate()
Add a "proxy-revalidate" directive.Add an "s-maxage" directive.Add an "s-maxage" directive.CacheControl.staleIfError
(long staleIfError, TimeUnit unit) Add a "stale-if-error" directive.CacheControl.staleIfError
(Duration staleIfError) Add a "stale-if-error" directive.CacheControl.staleWhileRevalidate
(long staleWhileRevalidate, TimeUnit unit) Add a "stale-while-revalidate" directive.CacheControl.staleWhileRevalidate
(Duration staleWhileRevalidate) Add a "stale-while-revalidate" directive.Methods in org.springframework.http with parameters of type CacheControlModifier and TypeMethodDescriptionResponseEntity.HeadersBuilder.cacheControl
(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.void
HttpHeaders.setCacheControl
(CacheControl cacheControl) Set a configuredCacheControl
instance as the new value of theCache-Control
header.