Origin Server does not modify the m3u8 posted to it. Encoder or packager publishing the m3u8 files need to ensure that m3u8 is HLS standard compliant. The encoder or packager should update the m3u8 file in a consistent manner.
Following are the constraints for consistent generation of m3u8: