1 from functools import partial
2 from django.utils.cache import patch_cache_control, patch_vary_headers
5 def ssi_cache_control(**kwargs):
6 return partial(patch_cache_control, **kwargs)
9 def ssi_vary(newheaders):
10 return partial(patch_vary_headers, newheaders=newheaders)
13 ssi_vary_on_cookie = ssi_vary(('Cookie',))