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


Annotation Type ApiCacheControl

  • @Retention(value=RUNTIME)
    public @interface ApiCacheControl
    Annotation for API cache control configuration. Note that the API frontend itself may act as a caching proxy.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      int maxAge
      The maximum age that results may be cached.
      java.lang.String type
      The cache control type.
    • Element Detail

      • type

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

        public abstract int maxAge
        The maximum age that results may be cached. If unspecified, defaults to 0.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Endpoints Frameworks for App Engine
Need help? Visit our support page.