【问题标题】:Apache doesn't show filesize/duration during downloading .dmg in browser?在浏览器中下载 .dmg 期间,Apache 不显示文件大小/持续时间?
【发布时间】:2013-08-26 16:10:03
【问题描述】:

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

我检查了http头:

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

【问题讨论】:

    标签: apache filesize


    【解决方案1】:

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

    SetEnv no-gzip dont-vary

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-26
      • 2019-12-13
      • 1970-01-01
      • 2014-07-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多