Giter VIP home page Giter VIP logo

ngx-mod-concat's Introduction

ngx-mod-concat

合并多个文件在一个响应报文中。 ngx_http_concat_module只支持本地文件concat,此模块做到从上游服务器资源合并。

京东首页用例

http://misc.360buyimg.com/??jdf/lib/jquery-1.6.4.js,jdf/1.0.0/ui/ui/1.0.0/ui.js

天猫首页用例

//g.alicdn.com/??mui/global/1.3.9/global.css,tm/fp/3.1.3/css/index.css

实现

rewrite阶段使用子请求方式实现

过程

过滤需要解析的url,分解成多个单个的资源 使用nginx子请求,并发请求upstream 合并资源,回传给browser

指令

jinx_concat syntax: jinx_concat on|off default: - context: http, server

ngx-mod-concat's People

Watchers

王锋 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.