I more or less fixed the headers by adding the following to index.php (line 23):
Code:
=> session_cache_limiter('public');
session_start();
The headers now look like this:
Code:
HTTP/1.1 200 OK
Date: Tue, 14 Dec 2010 01:28:01 GMT
Server: Apache/1.3.42 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Cache-Control: public, max-age=10800
Expires: Tue, 14 Dec 2010 04:28:01 GMT
X-Powered-By: PHP/5.2.14
Last-Modified: Tue, 14 Dec 2010 01:25:16 GMT
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/epub+zip
Unfortunately that didn't make any difference :(
My new theory is that Android doesn't play well with authenticated sites. The directory with the ebooks doesn't require authentication, just using security by obscurity there. The php server directory however is authenticated. The 'hangs' I mentioned earlier may be tied to Android intermittently not passing credentials correctly. When I added user:password@ to the URL the page that was hanging suddenly displayed.
Will do some more testing to confirm.