public class ConfigResource extends java.lang.Object implements RestResource
RestResource.HasETag, RestResource.HasLastModified
Modifier and Type | Field and Description |
---|---|
static com.google.inject.TypeLiteral<RestView<ConfigResource>> |
CONFIG_KIND |
static CacheControl |
DEFAULT_CACHE_CONTROL
Default cache control that gets set on the 'Cache-Control' header for responses on this
resource that are cacheable.
|
Constructor and Description |
---|
ConfigResource() |
public static final com.google.inject.TypeLiteral<RestView<ConfigResource>> CONFIG_KIND
public static CacheControl DEFAULT_CACHE_CONTROL
Not all resources are cacheable and in fact the vast majority might not be. Caching is a trade-off between the freshness of data and the number of QPS that the web UI sends.