Skip to main content

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

readme42.com

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

File details

Details for the file django-http-cache-control-view-2020.7.1.tar.gz.

File metadata

  • Download URL: django-http-cache-control-view-2020.7.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django-http-cache-control-view-2020.7.1.tar.gz
Algorithm Hash digest
SHA256 dcf5daab486bba3088851d07b1a001a0c8667d8ae4a9caf8b4ff26eeede54ba5
MD5 08b0178e0cad0cd056ecfb2709c68c3d
BLAKE2b-256 97713bcd448ed81bb5c219f7fd25f7bb399c5335dcbd58fc83b6dc4740f57358

See more details on using hashes here.

Supported by

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