Class InternalAssetProperties.BrowserCacheProperties
java.lang.Object
com.broadleafcommerce.asset.autoconfigure.InternalAssetProperties.BrowserCacheProperties
- Enclosing class:
- InternalAssetProperties
Properties for browser-related caching of asset content returned by the
ContentResolverEndpoint.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe "max-age" value to set on the "Cache-Control" header.booleanDetermines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests.voidsetEnabled(boolean enabled) Determines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests.voidThe "max-age" value to set on the "Cache-Control" header.toString()
-
Constructor Details
-
BrowserCacheProperties
public BrowserCacheProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Determines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests. -
getMaxAge
The "max-age" value to set on the "Cache-Control" header. -
setEnabled
public void setEnabled(boolean enabled) Determines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests. -
setMaxAge
The "max-age" value to set on the "Cache-Control" header. -
toString
-