Hi Kevin,
Working on the first suggestion, file actually in "lib" subdirectory, deleted this (RS1.0.0RC4b):
if ( $is_apache ) {
// If web server is apache, check HTTP If-Modified-Since header before sending content
$ar = apache_request_headers();
if ( ! empty($ar['If-Modified-Since']) && ( strtotime($ar['If-Modified-Since']) >= $file_time ) ) {
// 304: "Browser, your cached version of image is OK; we're not sending anything new to you"
header( 'Last-Modified: '.gmdate('D, d M Y H:i:s', $file_time).' GMT', true, 304 );
return;
}
}
I de-activated, then re-activated RS. I installed Lester Chan's wp-serverinfo (or similar) to verify I'm on Apache 2.2.3.
I made a test post with 3 sorts of files in my uploads directory, just for some variation, and left clicked on them all, with the modified file as above.
A .gif is served normally and displays in IE
A .pdf file, no apparent change, nothing happens with left click in IE. Well a little blue status bar at the foot of IE would indicate some downlaod type activity, but no outcome from that. I tried other pdf elsewhere on the server, and that works, and also fine without RS active.
A .doc file, IE invites me to "open" or "save" or "cancel". If I "save" then I get a pop-up telling me:
"Internet Explorer cannot download [file] from [server]. Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later."
If I "open" then I seem to get invited for my https:// credentials again, and back to page with downloads on.
When I right click, save target as…I get the file cannot be written to the cache errors. I also get this with the .gif (served on left click).
I'll re-insert this deleted "if" code block, and try the next test…perhaps another day. Other work to do
I am on a secure server (https://) if that makes any difference? Firefox behaves fine with this modified code.