3

Is it possible that CherryPy, in its default configuration, is caching the responses to one or more of my request handlers? And, if so, how do I turn that off?

2 Answers 2

6

Per the docs, there is indeed a cache (for GET), and you can disable it by having in your configuration

tools.caching.on = False
4

CherryPy has a caching Tool, but it's never on by default. Most HTTP responses are cacheable by default, though, so look for an intermediate cache between your client and server. Look at the browser first.

If you're not sure whether or not your content is being cached, compare the Date response header to the current time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.