I discover that my iPhone doesn't understand this header: //header('Pragma: no-cache'); Commented all works fine, but I don't know why.