Django http Cache-Control header view mixin
Project description
Installation
$ [sudo] pip install django-http-cache-control-view
views.py
from django_http_cache_control_view.views import HttpCacheControlMixin
class MyView(HttpCacheControlMixin,...):
http_cache_control_max_age = 60
class MyView(HttpCacheControlMixin,...):
def get_http_cache_control_max_age(self):
return 60
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-http-cache-control-view-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf5daab486bba3088851d07b1a001a0c8667d8ae4a9caf8b4ff26eeede54ba5 |
|
MD5 | 08b0178e0cad0cd056ecfb2709c68c3d |
|
BLAKE2b-256 | 97713bcd448ed81bb5c219f7fd25f7bb399c5335dcbd58fc83b6dc4740f57358 |