Uses of Class
org.springframework.http.CacheControl
Packages that use CacheControl
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Support classes for testing web applications.
Spring WebFlux configuration infrastructure.
Provides the types that make up Spring's functional web framework for Reactive environments.
Support classes for serving static resources.
Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Support classes for Spring's web MVC framework.
-
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. -
Uses of CacheControl in org.springframework.test.web.support
Methods in org.springframework.test.web.support with parameters of type CacheControlModifier and TypeMethodDescriptionAbstractHeaderAssertions.cacheControl(CacheControl cacheControl) Expect a "Cache-Control" header with the given value. -
Uses of CacheControl in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config with parameters of type CacheControlModifier and TypeMethodDescriptionResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) Specify theCacheControlwhich should be used by the resource handler. -
Uses of CacheControl in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server with parameters of type CacheControlModifier and TypeMethodDescriptionEntityResponse.Builder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader. -
Uses of CacheControl in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource that return CacheControlModifier and TypeMethodDescriptionResourceWebHandler.getCacheControl()Return theCacheControlinstance to build the Cache-Control HTTP response header.Methods in org.springframework.web.reactive.resource with parameters of type CacheControlModifier and TypeMethodDescriptionvoidResourceWebHandler.setCacheControl(@Nullable CacheControl cacheControl) Set theCacheControlinstance to build the Cache-Control HTTP response header. -
Uses of CacheControl in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type CacheControlModifier and TypeMethodDescriptionResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) Specify theCacheControlwhich should be used by the resource handler. -
Uses of CacheControl in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function with parameters of type CacheControlModifier and TypeMethodDescriptionEntityResponse.Builder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader. -
Uses of CacheControl in org.springframework.web.servlet.mvc
Methods in org.springframework.web.servlet.mvc that return CacheControlModifier and TypeMethodDescriptionprotected @Nullable CacheControlWebContentInterceptor.lookupCacheControl(String lookupPath) Deprecated, for removal: This API element is subject to removal in a future version.protected @Nullable CacheControlWebContentInterceptor.lookupCacheControl(PathContainer path) Find aCacheControlinstance for the given parsedpath.Methods in org.springframework.web.servlet.mvc with parameters of type CacheControlModifier and TypeMethodDescriptionvoidWebContentInterceptor.addCacheMapping(CacheControl cacheControl, String... paths) Map specific URL paths to a specificCacheControl. -
Uses of CacheControl in org.springframework.web.servlet.support
Methods in org.springframework.web.servlet.support that return CacheControlModifier and TypeMethodDescriptionfinal @Nullable CacheControlWebContentGenerator.getCacheControl()Get theCacheControlinstance that builds the Cache-Control HTTP response header.Methods in org.springframework.web.servlet.support with parameters of type CacheControlModifier and TypeMethodDescriptionprotected final voidWebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse response, CacheControl cacheControl) Set the HTTP Cache-Control header according to the given settings.final voidWebContentGenerator.setCacheControl(@Nullable CacheControl cacheControl) Set theCacheControlinstance to build the Cache-Control HTTP response header.
PathMatcherandUrlPathHelperis deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser.