Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Framework for setting cache-related headers #864
If certain features of Tornado are used, the resulting pages should not be cached (e.g. xsrf tokens, locale detection). The Cache-Control and Vary headers are currently left up to the application (except for the Vary: Accept-Encoding header added by the gzip encoder). We should set the appropriate cache-related headers by default and probably introduce some new interfaces to coordinate these headers between the framework and application-level code (and middleware/mixins).