当我在我的 Refinery 应用程序的本地开发版本中单击 PDF 链接时,PDF 将在浏览器中打开。但是,在我的应用程序在 Apache 上的远程服务器上运行的测试版本中,系统会提示我下载文件。据我所知,两个应用程序的配置相同。
不同之处在于 Apache 版本返回Content-Disposition
带有attachment
值的标头:
Content-Disposition: attachment; privacy.pdf
我遵循了以下网站(包括炼油厂文档)的建议,但没有成功:
- http://refinerycms.com/guides/resources
- https://groups.google.com/forum/#!topic/refinery-cms/97ckptiy0ss
我在炼油厂版本 2.0.10 上。