<tfoot id='btYH5'></tfoot>
  • <i id='btYH5'><tr id='btYH5'><dt id='btYH5'><q id='btYH5'><span id='btYH5'><b id='btYH5'><form id='btYH5'><ins id='btYH5'></ins><ul id='btYH5'></ul><sub id='btYH5'></sub></form><legend id='btYH5'></legend><bdo id='btYH5'><pre id='btYH5'><center id='btYH5'></center></pre></bdo></b><th id='btYH5'></th></span></q></dt></tr></i><div id='btYH5'><tfoot id='btYH5'></tfoot><dl id='btYH5'><fieldset id='btYH5'></fieldset></dl></div>
    1. <small id='btYH5'></small><noframes id='btYH5'>

        <bdo id='btYH5'></bdo><ul id='btYH5'></ul>

      <legend id='btYH5'><style id='btYH5'><dir id='btYH5'><q id='btYH5'></q></dir></style></legend>
      1. 变化:接受编码是什么意思?

        What does vary:accept-encoding mean?(变化:接受编码是什么意思?)

          <i id='Psueu'><tr id='Psueu'><dt id='Psueu'><q id='Psueu'><span id='Psueu'><b id='Psueu'><form id='Psueu'><ins id='Psueu'></ins><ul id='Psueu'></ul><sub id='Psueu'></sub></form><legend id='Psueu'></legend><bdo id='Psueu'><pre id='Psueu'><center id='Psueu'></center></pre></bdo></b><th id='Psueu'></th></span></q></dt></tr></i><div id='Psueu'><tfoot id='Psueu'></tfoot><dl id='Psueu'><fieldset id='Psueu'></fieldset></dl></div>

              <tbody id='Psueu'></tbody>

            <small id='Psueu'></small><noframes id='Psueu'>

              <legend id='Psueu'><style id='Psueu'><dir id='Psueu'><q id='Psueu'></q></dir></style></legend>
                <bdo id='Psueu'></bdo><ul id='Psueu'></ul>

                • <tfoot id='Psueu'></tfoot>
                  本文介绍了变化:接受编码是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  谷歌页面速度插件通知我:

                  the google page speed addon informs me:

                  The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:
                  //some .js and .css files
                  

                  我不明白这是什么意思.我已经像这样压缩了这些文件:

                  I don't understand what this means. I've already compressed these files like so:

                  if (encodings.Contains("gzip") || encodings == "*")
                  {
                      app.Response.Filter = new GZipStream(baseStream, CompressionMode.Compress);
                      app.Response.AppendHeader("Content-Encoding", "gzip");
                  }
                  

                  这一切似乎都奏效了.为什么需要 Vary: Accept-Encoding?

                  And this all seems to work. Why is having Vary: Accept-Encoding necessary?

                  推荐答案

                  它允许缓存根据浏览器是否请求 GZIP 编码来提供不同的页面缓存版本.如果指示的标头中有任何变化,则可变标头指示缓存存储页面的不同版本.

                  It is allowing the cache to serve up different cached versions of the page depending on whether or not the browser requests GZIP encoding or not. The vary header instructs the cache to store a different version of the page if there is any variation in the indicated header.

                  就目前而言,缓存中将有一个(可能是压缩的)页面副本.假设它是压缩版本:如果有人请求资源但不支持 gzip 编码,则会为他们提供错误的内容.

                  As things stand, there will be one (possibly compressed) copy of the page in cache. Say it is the compressed version: If somebody requests the resource but does not support gzip encoding, they'll be served the wrong content.

                  这篇关于变化:接受编码是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                      <tbody id='ztAmo'></tbody>

                      • <bdo id='ztAmo'></bdo><ul id='ztAmo'></ul>
                        <legend id='ztAmo'><style id='ztAmo'><dir id='ztAmo'><q id='ztAmo'></q></dir></style></legend>

                        <tfoot id='ztAmo'></tfoot>

                          <i id='ztAmo'><tr id='ztAmo'><dt id='ztAmo'><q id='ztAmo'><span id='ztAmo'><b id='ztAmo'><form id='ztAmo'><ins id='ztAmo'></ins><ul id='ztAmo'></ul><sub id='ztAmo'></sub></form><legend id='ztAmo'></legend><bdo id='ztAmo'><pre id='ztAmo'><center id='ztAmo'></center></pre></bdo></b><th id='ztAmo'></th></span></q></dt></tr></i><div id='ztAmo'><tfoot id='ztAmo'></tfoot><dl id='ztAmo'><fieldset id='ztAmo'></fieldset></dl></div>

                          <small id='ztAmo'></small><noframes id='ztAmo'>