Fix cache error when header not send