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 1.13.0 API)
org.spincast.plugins.routing
Class StaticResourceCacheConfigDefault
- java.lang.Object
-
- org.spincast.plugins.routing.StaticResourceCacheConfigDefault
-
- All Implemented Interfaces:
- StaticResourceCacheConfig
public class StaticResourceCacheConfigDefault
extends Object
implements StaticResourceCacheConfig
-
-
Constructor Summary
Constructors
Constructor and Description
StaticResourceCacheConfigDefault(int cacheSeconds,
boolean isCachePrivate,
Integer cacheSecondsCdn)
-
Method Summary
All Methods Instance Methods Concrete Methods
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...
-
-
Method Detail
-
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
public Integer 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
Copyright © 2019. All rights reserved.