Forum Moderators: phranque
Now, what is mysterious is that according to my Apache log these IPs are served the WHOLE mp3 file (with an Apache code of 200) each and every access. So why doesn't my system serve them back a 304 when the access has already been once completed?
I've specified "Accept-Ranges" as none, so I don't think I'll get any 206s. Hmmm. Could that be why streaming mp3s are having trouble?
1.1.2.7 - - [16/Feb/2015:06:57:22 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "http://memyselfandi/telecon/x/y.mp3" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
1.1.2.7 - - [16/Feb/2015:06:57:23 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "-" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
1.1.2.7 - - [16/Feb/2015:06:57:27 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "-" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
1.1.2.7 - - [16/Feb/2015:06:57:31 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "-" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
1.1.2.7 - - [16/Feb/2015:06:57:34 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "-" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
1.1.2.7 - - [16/Feb/2015:06:57:37 -0500] "GET /x/y.mp3 HTTP/1.1" 200 9123048 "-" "Mozilla/5.0 (Linux; Android 4.4.2; SM-G900T Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36"
[edited by: phranque at 2:35 am (utc) on Mar 2, 2015]
[edit reason] replaced blog link with relevant WebmasterWorld thread [/edit]
If this header is used in a response with the application/octet- stream content-type, the implied suggestion is that the user agent should not display the response, but directly enter a `save response as...' dialog.
I'm not sure what you mean by "caching-related response headers". How do I log them?
php_value auto_prepend_file "~/Sites/logheaders.php" <?php
$ip = get_server('REMOTE_ADDR');
$fh = fopen("headers-". date('Ymd') . ".log","a");
fwrite($fh, "IP: $ip\n");
foreach (getallheaders() as $name => $value) {
fwrite($fh, "$name: $value\n");
}
fwrite($fh, "----\n\n");
fclose($fh);
?>