http - 如何在 Firefox 中忽略 "Content-Disposition: attachment"

标签 http firefox browser download

如何让 Firefox 忽略 Content-Disposition: attachment header ? 我发现无法在浏览器中查看图像非常烦人,因为它要求我下载它。

我不想下载文件,我只想在浏览器中查看。如果浏览器没有插件来处理它,然后它应该要求下载。

例如我安装了 Adob​​e Acrobat Reader 作为 Firefox 的插件。我单击指向 PDF 的链接,当它应该使用插件在浏览器中打开时,它会要求我保存它。这是服务器未在响应中发送 Content-Disposition: attachment header 时的行为。

火狐 3.6.6 Windows XP SP3

最佳答案

遗产 InlineDisposition Kai Liu 的 1.0.2.4 可以解决这个问题。

Classic Add-ons Archive在:

  • caa:addon/inlinedisposition

关于http - 如何在 Firefox 中忽略 "Content-Disposition: attachment",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3251575/

相关文章:

java - 使用 spring/tomcat 的 http 请求响应不正确

firefox - 将 Firefox 扩展限制为特定域

apache - Firefox 的站点非常慢,在所有其他浏览器上都是即时的 : KeepAlive issue?

css - 按钮不显示

java - 从嵌入式 Applet 进行 HTTP 调用时绕过内置浏览器身份验证

html - 浏览器如何处理多次引用的不可缓存资源?

windows - Web 应用程序 Kerberos 身份验证 : Is the proper way to combine with cookies?

http - WebSphere Liberty 中 SOAP 客户端代理的基本身份验证

multithreading - 戈兰 : to goroutine or not to goroutine?

internet-explorer - 向浏览器注册脚本语言?