v. 0.2.5
[django-ssify.git] / ssify / utils.py
1 from functools import partial
2 from django.utils.cache import patch_cache_control, patch_vary_headers
3
4
5 def ssi_cache_control(**kwargs):
6     return partial(patch_cache_control, **kwargs)
7
8
9 def ssi_vary(newheaders):
10     return partial(patch_vary_headers, newheaders=newheaders)
11
12
13 ssi_vary_on_cookie = ssi_vary(('Cookie',))