Skip to main content

Set Cache-Control headers on the Flask response

Project description

A light-weight library to conveniently set Cache-Control headers on the response. Decorate view functions with cache_for, cache, or dont_cache decorators. Makes use of Flask response.cache_control.

This extension does not provide any caching of its own. Its sole purpose is to set Cache-Control and related HTTP headers on the response, so that clients, intermediary proxies or reverse proxies in your jurisdiction which evaluate Cache-Control headers, such as Varnish Cache, do the caching for you.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-CacheControl-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file Flask-CacheControl-0.1.0.tar.gz.

File metadata

File hashes

Hashes for Flask-CacheControl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27435a6114413bb519d4d5886d91fecc64dddba6e316a0e2d3687b38c0af7973
MD5 f36bd5532e0648e2a66d8f8ae9cd5e01
BLAKE2b-256 c6ed5c68fa2b4d1719f5c36d2dda24886d3d40646a7f1e572d0f2c9b06c36699

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page