public class StaticResourceCacheConfig extends Object implements IStaticResourceCacheConfig
| Constructor and Description |
|---|
StaticResourceCacheConfig(int cacheSeconds,
boolean isCachePrivate,
Integer cacheSecondsCdn) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheSeconds()
The number of seconds to use when sending
caching headers.
|
Integer |
getCacheSecondsCdn()
The number of seconds to use to cache by CDNs.
|
boolean |
isCachePrivate()
Should
private be used when sending
caching headers?
more info... |
public int getCacheSeconds()
IStaticResourceCacheConfigIf <=0 no caching headers will be sent.
getCacheSeconds in interface IStaticResourceCacheConfigpublic boolean isCachePrivate()
IStaticResourceCacheConfigprivate be used when sending
caching headers?
more info...isCachePrivate in interface IStaticResourceCacheConfigpublic Integer getCacheSecondsCdn()
IStaticResourceCacheConfig
If null, this option would be set.
getCacheSecondsCdn in interface IStaticResourceCacheConfigCopyright © 2016. All rights reserved.