Hello Andrey,
You could use the Author's own solution to his "How to cache the response in google cloud endpoint?"
question in stackoverflow. A cache dedicated servlet does not seem necessary.
This forum is meant for general discussions related to the App Engine, trends and the like. For coding-specific problems you are better served posting in stackoverflow or similar forums, where programmers are ready to help with expert advice.