Class InternalAssetProperties.BrowserCacheProperties

java.lang.Object
com.broadleafcommerce.asset.autoconfigure.InternalAssetProperties.BrowserCacheProperties
Enclosing class:
InternalAssetProperties

public static class InternalAssetProperties.BrowserCacheProperties extends Object
Properties for browser-related caching of asset content returned by the ContentResolverEndpoint.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The "max-age" value to set on the "Cache-Control" header.
    boolean
    Determines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests.
    void
    setEnabled(boolean enabled)
    Determines whether the content resolver endpoint should attempt to utilize browser caching when responding to requests.
    void
    The "max-age" value to set on the "Cache-Control" header.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public Duration 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

      public void setMaxAge(Duration maxAge)
      The "max-age" value to set on the "Cache-Control" header.
    • toString

      public String toString()
      Overrides:
      toString in class Object