fix issue that "END" in the content of the cache

when "END" appeared in the cached data, the buffer will be chopped by mistake.