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

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