Class WebProperties.Resources.Cache.Cachecontrol
java.lang.Object
org.springframework.boot.autoconfigure.web.WebProperties.Resources.Cache.Cachecontrol
- Enclosing class:
WebProperties.Resources.Cache
Cache Control HTTP header configuration.
- Since:
- 2.4.0
- Author:
- Andy Wilkinson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean
@Nullable Boolean
@Nullable Duration
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Boolean
@Nullable Duration
@Nullable Duration
@Nullable Duration
void
setCachePrivate
(@Nullable Boolean cachePrivate) void
setCachePublic
(@Nullable Boolean cachePublic) void
void
setMustRevalidate
(@Nullable Boolean mustRevalidate) void
setNoCache
(@Nullable Boolean noCache) void
setNoStore
(@Nullable Boolean noStore) void
setNoTransform
(@Nullable Boolean noTransform) void
setProxyRevalidate
(@Nullable Boolean proxyRevalidate) void
setSMaxAge
(@Nullable Duration sMaxAge) void
setStaleIfError
(@Nullable Duration staleIfError) void
setStaleWhileRevalidate
(@Nullable Duration staleWhileRevalidate) @Nullable CacheControl
-
Constructor Details
-
Cachecontrol
public Cachecontrol()
-
-
Method Details
-
getMaxAge
-
setMaxAge
-
getNoCache
-
setNoCache
-
getNoStore
-
setNoStore
-
getMustRevalidate
-
setMustRevalidate
-
getNoTransform
-
setNoTransform
-
getCachePublic
-
setCachePublic
-
getCachePrivate
-
setCachePrivate
-
getProxyRevalidate
-
setProxyRevalidate
-
getStaleWhileRevalidate
-
setStaleWhileRevalidate
-
getStaleIfError
-
setStaleIfError
-
getSMaxAge
-
setSMaxAge
-
toHttpCacheControl
-