29_content 阶段的concat 模块
admin
2024-02-02 11:51:15
0次
文章目录
- 提升性能: content 阶段的 caoncat 模块
- concat 模块的指令
- 示例配置
提升性能: content 阶段的 caoncat 模块
- 功能: 当页面需要访问多个小文件时,把它们内容合并到一次http 响应中返回,提升性能;
- 模块:
ngx_http_concat_module, 模块开发者Tengine(https://github.com/alibaba/nginx-http-concat): --add-module=../nginx-http-concat/ - 使用: 在 URI 后加上??,后通过多个
,都会分隔文件。 - 如果还有参数,则在最后通过? 添加参数: https://g.alicdn.com/??kissy/k/6.2.4/seed-min.js,kg/global-util/1.0.7/index-min.js,tb/tracker/4.3.5/index.js,kg/tb-nav/2.5.3/index-min.js,secdev/sufei_data/3.3.5/index.js
concat 模块的指令
-
concat:
- syntax: concat on| off;
- default: concat off;
- context: http, server, location
相关内容