[squid-users] Squid issue of caching the m3u8 file

Amos Jeffries squid3 at treenet.co.nz
Tue Jun 6 16:37:36 UTC 2017


On 07/06/17 01:33, LIU Yaning wrote:
> Dear Amos,
>
> Thanks a lot for your explanation and suggestion. I added the 
> "store-stale" to the refresh_pattern rule as:
> refresh_pattern -i \.(ts|m3u8)$ 120 90% 1000 override-expire 
> override-lastmod ignore-no-cache ignore-no-store store-stale
>
> However, I have checked the access.log, I am still getting TCP_Miss.
> 1496754869.963 13 192.168.0.100 TCP_MISS/200 16636 GET 
> http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 
> <http://www.google.com/url?q=http%3A%2F%2Fqthttp.apple.com.edgesuite.net%2F1010qwoeiuryfg%2F0150_vod.m3u8&sa=D&sntz=1&usg=AFQjCNHpiHy55EMeBIaMGhgEKRHanTrXxg> - 
> HIER_DIRECT/95.101.182.201 
> <http://www.google.com/url?q=http%3A%2F%2F95.101.182.201&sa=D&sntz=1&usg=AFQjCNE9ZWXH7sOJgbqIA--MJwxobSp76Q> application/x-mpegURL
> 1496754870.605 4 192.168.0.100 TCP_MISS/200 16636 GET 
> http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 
> <http://www.google.com/url?q=http%3A%2F%2Fqthttp.apple.com.edgesuite.net%2F1010qwoeiuryfg%2F0150_vod.m3u8&sa=D&sntz=1&usg=AFQjCNHpiHy55EMeBIaMGhgEKRHanTrXxg> - 
> HIER_DIRECT/95.101.182.201 
> <http://www.google.com/url?q=http%3A%2F%2F95.101.182.201&sa=D&sntz=1&usg=AFQjCNE9ZWXH7sOJgbqIA--MJwxobSp76Q> application/x-mpegURL
> 1496754871.194 15 192.168.0.100 TCP_MISS/200 16636 GET 
> http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 
> <http://www.google.com/url?q=http%3A%2F%2Fqthttp.apple.com.edgesuite.net%2F1010qwoeiuryfg%2F0150_vod.m3u8&sa=D&sntz=1&usg=AFQjCNHpiHy55EMeBIaMGhgEKRHanTrXxg> - 
> HIER_DIRECT/95.101.182.201 
> <http://www.google.com/url?q=http%3A%2F%2F95.101.182.201&sa=D&sntz=1&usg=AFQjCNE9ZWXH7sOJgbqIA--MJwxobSp76Q> application/x-mpegURL
> 1496754871.715 4 192.168.0.100 TCP_MISS/200 16636 GET 
> http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 
> <http://www.google.com/url?q=http%3A%2F%2Fqthttp.apple.com.edgesuite.net%2F1010qwoeiuryfg%2F0150_vod.m3u8&sa=D&sntz=1&usg=AFQjCNHpiHy55EMeBIaMGhgEKRHanTrXxg> - 
> HIER_DIRECT/95.101.182.201 
> <http://www.google.com/url?q=http%3A%2F%2F95.101.182.201&sa=D&sntz=1&usg=AFQjCNE9ZWXH7sOJgbqIA--MJwxobSp76Q> application/x-mpegURL
>
> If I understand well, TCP_MISS/200 shows the content is not cached by 
> Squid. Could you please help me to see if anything I did wrong to make 
> .m3u8 not cached by Squid?

I'm out of ideas sorry.


FWIW: this is what I get from my test setup using your refresh_pattern:

1496766607.433   1284 ::1 TCP_MISS/200 16628 GET 
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 - 
HIER_DIRECT/119.224.143.41 application/x-mpegURL
1496766610.254    902 ::1 TCP_REFRESH_UNMODIFIED/200 16499 GET 
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/0150_vod.m3u8 - 
HIER_DIRECT/119.224.143.41 application/x-mpegURL

I am currently testing Squid-4.0.20, but it should behave the same in 
the recent few v3.5 releases.

Amos



More information about the squid-users mailing list