Disables caching of this method. The default value is true, so merely
adding this annotation to your method config will disable caching for that
method, unless you set this field to false.
Default:
true
maxAge
public abstract int maxAge
Deprecated.
Overrides the maximum age to cache responses from this method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eApiMethodCacheControl\u003c/code\u003e is a deprecated annotation type that will be removed in future versions of Cloud Endpoints.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation was used for configuring cache control of API methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003enoCache\u003c/code\u003e element, defaulting to \u003ccode\u003etrue\u003c/code\u003e, was used to disable caching for a specific method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emaxAge\u003c/code\u003e element, defaulting to \u003ccode\u003e0\u003c/code\u003e, allowed overriding the maximum age for caching responses from a method.\u003c/p\u003e\n"]]],[],null,[]]