def METHOD_NAME(self, response):
    if self.config.force_refresh:
        self._clear_response(response)
    version = self.version()
    self._debug_message("storing cookie value '{}' in '{}'".format(
        version, self._cookie_id))
    response.set_cookie(self._cookie_id, version)