本文介绍了在浏览器中下载.dmg时,Apache不显示文件大小/持续时间吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有Mac软件的.dmg,但是当我尝试下载此文件时(即使在其他浏览器中),它也没有显示持续时间或文件大小.这可能是我需要在Apache中配置的东西吗?

I have a .dmg on my website for a Mac Software, but when i try to download this (even in different browsers), it doesn't show me the duration or the filesize. Could this be something i need to configure in Apache?

我检查了http标头:

I checked the http header:

HTTP/1.1 200 OK =>
Date => Mon, 22 Apr 2013 15:36:08 GMT
Server => Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.3.22
Last-Modified => Thu, 11 Apr 2013 13:30:19 GMT
ETag => "2087eb-4151ab7-4da15c9a450c0"
Accept-Ranges => bytes
Content-Length => 68491959
Cache-Control => max-age=1209600
Expires => Mon, 06 May 2013 15:36:08 GMT
Vary => Accept-Encoding,User-Agent
Connection => close
Content-Type => application/x-apple-diskimage

推荐答案

尝试将其添加到您的.htaccess中:

Try to add this to your .htaccess :

这篇关于在浏览器中下载.dmg时,Apache不显示文件大小/持续时间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 23:15