<div dir="ltr"><span style="font-size:13px">Dear All,</span><div style="font-size:13px"><br></div><div style="font-size:13px">I would like to cache the .m3u8 file to be able to provide offline caching service by Squid. The played HLS video streaming is the link as below:</div><div style="font-size:13px"><a href="http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8" target="_blank" style="text-decoration:none"><span style="font-size:8.5pt;font-family:Arial;background-color:transparent;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">http://qthttp.apple.com.<wbr>edgesuite.net/1010qwoeiuryfg/<wbr>0150_vod.m3u8</span></a> </div><div style="font-size:13px"><br></div><div style="font-size:13px">However, the .m3u8 file is not be cached probably because it is mentioned as a no-cache, no-store, max-age=0 in the "Cache-Control" in the HTTP header.</div><div style="font-size:13px"><br></div><div style="font-size:13px"><span id="gmail-m_-2676493553855288288gmail-docs-internal-guid-87986d69-77cb-bd0a-cc5b-ec586281cce4"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">HTTP/1.1 200 OK</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Server: Apache</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">ETag: "<wbr>1d7168b4f49e75f76f3182f24bf075<wbr>f6:1299516751"</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Last-Modified: Mon, 07 Mar 2011 16:52:31 GMT</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Expires: Fri, 02 Jun 2017 14:26:52 GMT</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Cache-Control: max-age=0, no-cache, no-store</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Pragma: no-cache</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Date: Fri, 02 Jun 2017 14:26:52 GMT</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Content-Length: 16046</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Set-Cookie: AKID=<wbr>77F9F1316ECCE780566608C5E514DE<wbr>0A;expires=Fri, 26 Aug 2016 00:01:00 GMT; path=/; domain=<a href="http://qthttp.apple.com.edgesuite.net/" target="_blank">qthttp.apple.com.<wbr>edgesuite.net</a></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Content-Type: application/x-mpegURL</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Access-Control-Allow-Origin: *</span></p><div><span style="font-size:8.5pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span><div>I added a new rule for .m3u8 file in squid.conf, however, it is still not working.</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">refresh_pattern -i \.(ts|m3u8)$ 120 90% 1000 override-expire override-lastmod ignore-no-cache ignore-no-store</p></div><div><br></div><div>Does anyone know how to allow Squid caching the .m3u8 file? Thanks a lot in advance.</div></div><div><br></div><div class="gmail_signature">Best Regards,<br>--<br>Yaning.<br></div>
</div>