Package org.spincast.plugins.routing
Class StaticResourceCacheConfigDefault
java.lang.Object
org.spincast.plugins.routing.StaticResourceCacheConfigDefault
- All Implemented Interfaces:
StaticResourceCacheConfig
-
Constructor Summary
ConstructorDescriptionStaticResourceCacheConfigDefault
(int cacheSeconds, boolean isCachePrivate, Integer cacheSecondsCdn) -
Method Summary
Modifier and TypeMethodDescriptionint
The number of seconds to use when sending caching headers.The number of seconds to use to cache by CDNs.boolean
Shouldprivate
be 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:StaticResourceCacheConfig
The number of seconds to use when sending caching headers.If <=0 no caching headers will be sent.
- Specified by:
getCacheSeconds
in interfaceStaticResourceCacheConfig
-
isCachePrivate
public boolean isCachePrivate()Description copied from interface:StaticResourceCacheConfig
Shouldprivate
be used when sending caching headers? more info...- Specified by:
isCachePrivate
in interfaceStaticResourceCacheConfig
-
getCacheSecondsCdn
Description copied from interface:StaticResourceCacheConfig
The number of seconds to use to cache by CDNs.If
null
, this option would be set.- Specified by:
getCacheSecondsCdn
in interfaceStaticResourceCacheConfig
-