Package org.spincast.core.routing
Interface StaticResourceCacheConfig
- All Known Implementing Classes:
StaticResourceCacheConfigDefault
public interface StaticResourceCacheConfig
Cache configurations available for a static resource.
-
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...
-
Method Details
-
getCacheSeconds
int getCacheSeconds()The number of seconds to use when sending caching headers.If <=0 no caching headers will be sent.
-
isCachePrivate
boolean isCachePrivate()Shouldprivatebe used when sending caching headers? more info... -
getCacheSecondsCdn
Integer getCacheSecondsCdn()The number of seconds to use to cache by CDNs.If
null, this option would be set.
-