美文网首页
kong 开启 gzip

kong 开启 gzip

作者: 国服最坑开发 | 来源:发表于2022-08-16 09:25 被阅读0次

vim /usr/local/share/lua/5.1/kong/templates/nginx.lua

http {
    gzip on;
    gzip_disable "msie6";
    gzip_min_length 1000;
    gzip_proxied expired no-cache no-store private auth;

    # do not add text/html to gzip_types because it's added by default and will generate
    # nginx: [warn] duplicate MIME type "text/html"
    # http://stackoverflow.com/a/6475493/703144
    gzip_types application/json application/x-javascript application/xml application/xml+rss text/css text/javascript text/plain text/xml;

    include 'nginx-kong.conf';
}

相关文章

  • kong 开启 gzip

    vim /usr/local/share/lua/5.1/kong/templates/nginx.lua

  • 开启gzip

    开启gzip 标签: gzip compression 开启gzip压缩要在 static 之前才有效,下面以 c...

  • Nginx 配置优化

    一、开启Gzip1、参数gzip on;gzip_min_length 1k;gzip_buffers 4 16k...

  • springboot常用配置

    springboot开启https springboot开启gzip压缩

  • Vue开启Gzip Nginx开启Gzip

    安装compression-webpack-plugin vue.config.js配置Gzip压缩 配置Nginx

  • nginx的Gzip配置

    1 nginx的Gzip配置 1.1 gzip的指令 1.gzip :该指令用于开启或者关闭Gzip 功能 默认情...

  • 页面打开速度优化

    1、开启gzip压缩,浏览器是可以识别gzip压缩的。现在的服务基本上都使用nginx做转发,开启gzip也是很容...

  • gzip

    测试 gzip 是否开启 request 如果包含了 Accept-Encoding: gzip,deflate ...

  • Nginx服务器中的Gzip配置参数详解

    gzip on; 开启gzip off关闭 gzip_min_length 1k; 设置允许压缩的页面最小字节...

  • vue gzip压缩

    productionGzip改为true,开启Gzip压缩

网友评论

      本文标题:kong 开启 gzip

      本文链接:https://www.haomeiwen.com/subject/lnrjgrtx.html