whitenoise.django.DjangoWhiteNoise.FOREVER

Here are the examples of the python api whitenoise.django.DjangoWhiteNoise.FOREVER taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: whitenoise Source File: test_django_whitenoise.py
    def test_versioned_file_cached_forever(self):
        url = storage.staticfiles_storage.url(self.static_files.css_path)
        response = self.server.get(url)
        self.assertEqual(response.content, self.static_files.css_content)
        self.assertEqual(response.headers.get('Cache-Control'),
                         'public, max-age={}'.format(DjangoWhiteNoise.FOREVER))