我在stackoverflow上遇到了很多关于windows azure CDN无法提供gzip压缩资产的问题。我还浏览了某些链接,这些链接说可以做到。我很困惑,所以想在这里发布一个问题。
我有一个 Rails 应用程序,它从 Windows Azure CDN 提供所有资产。一切正常,但 CDN 无法提供压缩内容。这是一个链接,该链接建议将文件上传两次,一个是普通的,另一个是 gzip 压缩的,作为解决此问题的方法。我按照说明进行了操作。以下是链接的内容:
The feature in our backlog (as Jason Sherron points out) is the ability of the
Windows Azure CDN to autonomously create a compressed version of your content to serve
in response to a request for gzip encoding. Unless and until we get to implement that,
you'll have to upload content twice, once in each desire encoding.
如果我不在 CDN 上托管,标头都设置得很好并且效果很好。有没有人有解决这个问题的方法?这可以做到吗?
提前致谢 :)