Package org.spincast.plugins.routing
Class StaticResourceCacheConfigDefault
java.lang.Object
org.spincast.plugins.routing.StaticResourceCacheConfigDefault
- All Implemented Interfaces:
StaticResourceCacheConfig
-
Constructor Summary
ConstructorsConstructorDescriptionStaticResourceCacheConfigDefault(int cacheSeconds, boolean isCachePrivate, Integer cacheSecondsCdn) -
Method Summary
Modifier and TypeMethodDescriptionintThe number of seconds to use when sending caching headers.The number of seconds to use to cache by CDNs.booleanShouldprivatebe used when sending caching headers? more info...
-
Constructor Details
-
StaticResourceCacheConfigDefault
public StaticResourceCacheConfigDefault(int cacheSeconds, boolean isCachePrivate, @Nullable Integer cacheSecondsCdn)
-
-
Method Details
-
getCacheSeconds
public int getCacheSeconds()Description copied from interface:StaticResourceCacheConfigThe number of seconds to use when sending caching headers.If <=0 no caching headers will be sent.
- Specified by:
getCacheSecondsin interfaceStaticResourceCacheConfig
-
isCachePrivate
public boolean isCachePrivate()Description copied from interface:StaticResourceCacheConfigShouldprivatebe used when sending caching headers? more info...- Specified by:
isCachePrivatein interfaceStaticResourceCacheConfig
-
getCacheSecondsCdn
Description copied from interface:StaticResourceCacheConfigThe number of seconds to use to cache by CDNs.If
null, this option would be set.- Specified by:
getCacheSecondsCdnin interfaceStaticResourceCacheConfig
-