I have an epub file on my server, and it was recently mirrored by someone else's server. Both servers run apache2. When I access the file on my server, Firefox 6 begins to download it as a file. When I access the file on the other server, it starts showing up in the browser window as gobbledee-gook.
The response headers from the servers are as follow:
The response from my server:
(Status-Line) HTTP/1.1 200 OK
Date Mon, 22 Aug 2011 07:23:34 GMT
Server Apache/2.2.17 (Ubuntu)
Last-Modified Sun, 21 Aug 2011 09:38:00 GMT
Etag "d98629-18ec32-4ab00b7de6e00"
Accept-Ranges bytes
Content-Length 1633330
Keep-Alive timeout=2
Connection Keep-Alive
Content-Type text/plain
The response from theirs:
(Status-Line) HTTP/1.1 200 OK
Date Mon, 22 Aug 2011 07:36:12 GMT
Server Apache/2
Last-Modified Sun, 21 Aug 2011 09:38:00 GMT
Etag "16c0f2b-18ec32-4ab00b7de6e00"
Accept-Ranges bytes
Vary Accept-Encoding,User-Agent
Content-Encoding gzip
Keep-Alive timeout=1, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/plain