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
Metadata
Release files for django-http-cache-control-view 2020.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-http-cache-control-view-2020.7.1.tar.gz | 1.5 kB | Details |
Release files / django-http-cache-control-view-2020.7.1.tar.gz
| Download URL | django-http-cache-control-view-2020.7.1.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcf5daab486bba3088851d07b1a001a0c8667d8ae4a9caf8b4ff26eeede54ba5
|
|
BLAKE2b-256 checksum How to use checksums |
97713bcd448ed81bb5c219f7fd25f7bb399c5335dcbd58fc83b6dc4740f57358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
|