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 CacheControlCacheControl.empty()Return an empty directive.CacheControl.immutable()Add an "immutable" directive.static CacheControlAdd a "max-age=" directive.static CacheControlAdd a "max-age=" directive.CacheControl.mustRevalidate()Add a "must-revalidate" directive.static CacheControlCacheControl.noCache()Add a "no-cache" directive.static CacheControlCacheControl.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-Controlheader.voidHttpHeaders.setCacheControl(CacheControl cacheControl) Set a configuredCacheControlinstance as the new value of theCache-Controlheader.