code: def process_response(self, request, response):
          
          if not self.should_cache(request, response):
              # We don't need to update the cache, just return
              return response 
  
          response = self.patch_headers(response)
          self.set_cache(request, response)
  
          return response
docs: Sets the cache and deals with caching headers if needed