public.javadoc.org.spincast.plugins.routing.StaticResourceCacheConfigDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
StaticResourceCacheConfigDefault (org.spincast:spincast-framework 2.1.1 API)
Package org.spincast.plugins.routing
Class StaticResourceCacheConfigDefault
java.lang.Object
org.spincast.plugins.routing.StaticResourceCacheConfigDefault
- All Implemented Interfaces:
StaticResourceCacheConfig
-
Constructor Summary
Constructor
Description
StaticResourceCacheConfigDefault(int cacheSeconds,
boolean isCachePrivate,
Integer cacheSecondsCdn)
-
Method Summary
Modifier and Type
Method
Description
int
The number of seconds to use when sending
caching headers.
The number of seconds to use to cache by CDNs.
boolean
Should private
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 interface StaticResourceCacheConfig
-
isCachePrivate
public boolean isCachePrivate()
Description copied from interface: StaticResourceCacheConfig
Should private
be used when sending
caching headers?
more info...
- Specified by:
isCachePrivate
in interface StaticResourceCacheConfig
-
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 interface StaticResourceCacheConfig