code: def get_vary_headers(self, request, response):
          
  
          headers = []
          accessed = False
          try:
              accessed = request.session.accessed
          except AttributeError:
              pass
  
          if accessed:
              headers.append("Cookie")
          return headers
docs: Hook for patching the vary header