`
sogo6
  • 浏览: 110132 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Specify a Vary :Accept-Encoding Header解决办法

    博客分类:
  • web
阅读更多
在用Google的PageSpeed或Yahoo!的Y!Slow查看网页速度时,会看到“…specify a vary: accept-encoding header”的建议,那么怎么来解决这个问题呢?

在博客程序的根目录下找到.htaccess文件,然后文本编辑器编辑它。在文件最后添加下面的代码:

<IfModule mod_headers.c>
  <FilesMatch “\.(js|css|xml|gz)$”>
    Header append Vary Accept-Encoding
  </FilesMatch>
</IfModule>


刷新一下看看,OK?
分享到:
评论

相关推荐

    官网下载:Windows-KB841290-x86-ENU.zip

    xml version="1.0" encoding="utf-8"?&gt; &lt;name&gt; &lt;MD5&gt; &lt;SHA1&gt; &lt;/FCIV&gt; 5.Verification: --------------- You can build a hash database of your sensitive files and verify them regularily or ...

    kubernetes-dashboard.yaml

    # Uncomment the following line to manually specify Kubernetes API server Host # If not specified, Dashboard will attempt to auto discover the API server and connect # to it. Uncomment only if the ...

    谷歌地图 delphi 封装库 2013 0.1.9 全面支持google maps api

    - Improvement: TMarker =&gt; added Icon property to specify the icon to show into a map. Can be a file into your PC or an image on the web. - Improvement: TGMMarker =&gt; added OnIconChange event. - ...

    ftp可登录但是无法下载,上传问题解决

    $ pftp -v -A -d 211.159.185.xxx Connected to 211.159.185.198 (211.159.185.xxx). 220 (vsFTPd 3.0.2) Name (211.159.185.xxx:liangzh): lebaFtpUser ---&gt; USER lebaFtpUser 331 Please specify the ...

    Android代码-android-proguards

    android proguards Use one line to apply almost famous libraries of proguard configurations: compile '...That's it. Installation Via jcenter ...Specify RxJava proguard rules: rep

    boostdesc_bgm.i,vgg_generated_48.i等.zip

    To use proxy please check/specify these environment variables: - http_proxy/https_proxy - and/or HTTP_PROXY/HTTPS_PROXY 可以下载本资源结合我的博文(https://editor.csdn.net/md/?articleId=121682921)...

    Crypt-ZCert:Crypt-ZCert 的只读发布历史

    my $zcert = Crypt::ZCert-&gt;new( public_file =&gt; "/foo/mycert", # Optionally specify a secret file; # defaults to "${public_file}_secret": secret_file =&gt; "/foo/sekrit",);# Loaded from existing 'secret_...

    [Google 论文] MillWheel: Fault-Tolerant Stream Processing at Internet Scale

    Users specify a directed computation graph and application code for individual nodes, and the system manages persistent state and the continuous flow of records, all within the envelope of the ...

    mobiscroll-master插件--支持设置初始值

    theme: 'android-holo', // Specify theme like: theme: 'ios' or omit setting to use default mode: mode, // Specify scroller mode like: mode: 'mixed' or omit setting to use default display: display,...

    wget改进版pwget.zip

    -c --cokiefile: specify a cookie file to use -o --overwrite: force overwritting of files -m --mirror: only download if size differs -t --time: time to sleep between requests in seconds (float) ...

    ISO9001-QP程序文件-培训控制程序.pdf

    TR-001-99 - CMAI-TR-001-99 - Add 6.7 to specify DG HR Department's responsibility to conduct trainings to new direct staff and the types of training. 增加 6.7,规定 DG 人力资源部有职责执行新员工入职的...

    编译好的x265,带y4m文件

    --[no-]slow-firstpass Enable a slow first pass in a multipass rate control mode. Default disabled --analysis-mode |int&gt; save - Dump analysis info into file, load - Load analysis buffers from the ...

    Android代码-rotate-layout

    Rotate Layout ...Layout measures itself in a correct way. This means that if original view is 50x100, then 90 degree rotated it will measure itself as 100x50 and can fit in another layouts with t

    find-duplicates

    在文件系统中查找重复文件 安装 npm i -g @exodus/find-duplicates ...# you can specify multiple globs: find-duplicates --glob " node_modules/**/.js " --glob " node_modules/**/*.json " &gt; duplicates.json

    wget-1.11.4-1

    -A, --accept=LIST comma-separated list of accepted extensions. -R, --reject=LIST comma-separated list of rejected extensions. -D, --domains=LIST comma-separated list of accepted domains. --exclude...

    JMAP-Server:如http所指定的JMAP服务器的实现

    JMAP服务器 如所指定的JMAP服务器的实现 安装 npm install -g jmap-server 用法 首先启动服务器: jmap-server 然后,您可以在测试一些请求: ...如果安装了 : ... Usage: jmap-server {OPTIONS}... --port, -p Specify

    linux mount报错:you must specify the filesystem type的解决方法

    主要介绍了linux mount报错:you must specify the filesystem type的解决方法,文中给出了详细的解决方法示例,对大家具有一定的参考价值,需要的朋友们下面来一起看看吧。

    mysql中错误:1093-You can’t specify target table for update in FROM clause的解决方法

    最近在工作中遇到了一个mysql错误提示1093:You can’t specify target table for update in FROM clause,后来通过查找相关的资料解决了这个问题,现在将解决的方法分享给大家,有需要的朋友们可以参考借鉴,下面来...

    fast-http-server:超快速,零配置命令行HTTP Server

    用法 ... ...positional arguments: port specify alternate port [default: 3000] optional arguments: -h, --help show this help message and ... -d DIR, --directory DIR specify a directory -l LIST, --listdir L

Global site tag (gtag.js) - Google Analytics