# ApiCacheControl (endpoints-framework 2.0.0-beta.5 API)

com.google.api.server.spi.config

## Annotation Type ApiCacheControl

-

  *** ** * ** ***

  <br />

  ```
  @Retention(value=RUNTIME)
   @Target(value=TYPE)
  public @interface ApiCacheControl
  ```
  Annotation for API cache control configuration. Note that the API frontend itself may act as a caching proxy.
-
  -

    ### Optional Element Summary

    | Modifier and Type | Optional Element and Description |
    |---|---|
    | `int` | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiCacheControl.html#maxAge--` The maximum age that results may be cached. |
    | `java.lang.String` | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/config/ApiCacheControl.html#type--` The cache control type. |
    [Optional Elements]

-
  -

    ### Element Detail


    -

      #### type

      ```
      public abstract java.lang.String type
      ```
      The cache control type. Defaults to no-cache.

      Default:
      :   ""

  <!-- -->

  -

    -

      #### maxAge

      ```
      public abstract int maxAge
      ```
      The maximum age that results may be cached. If unspecified, defaults to 0.

      Default:
      :   -2147483648