Hi,<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 5:24 PM, António P. P. Almeida <span dir="ltr"><<a href="mailto:appa@perusio.net">appa@perusio.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 6 Dez 2011 07h56 WET, <a href="mailto:agentzh@gmail.com">agentzh@gmail.com</a> wrote:<br>
<br>
> Hi, folks!<br>
><br>
> I've been posting Nginx tutorials in Chinese to my yet another blog<br>
> site hosted by Sina Blog here:<br>
><br>
> <a href="http://blog.sina.com.cn/openresty" target="_blank">http://blog.sina.com.cn/openresty</a><br>
<br>
</div>Hello agentzh,<br>
<br>
I've riped out the http_concat_module from tengine and compiled it<br>
against 1.1.10 as a regular HTTP (not filter) module.<br>
<br><br><div></div></blockquote></div><br>Thanks for agentzh's CC.<div><br></div><div>Here is a synopsis below: </div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">
SYNOPSIS
location /foo/ {
# turn on concatenation
# (default: off)
concat on;
}
location /bar/ {
# turn on concatenation
# (default: off)
concat on;
# max concat file number allowed
# (default: 10)
# concat_max_files 10;
# only files in the same content types are allowed
# (default on)
# concat_unique on;
# content types allowed
# (default: application/x-javascript, text/css)
# concat_types text/html;
}
DESCRIPTION
The idea of combining multiple files together to speed up page
rendering was first brought in perlbal, by David Davis. Then mod_concat
was implemented by Ian Holsman at AOL. This technique is really simple
but very useful, by specifing a set of files to load in one HTTP
request.
This module basically works as what its apache cousin does.
Additionally, it also support maximum concat file number setting and
version string (the string after the third question mark will be
treated as version string and ignored).
EXAMPLE
<a href="http://foobar.com/??a.js,b.js,c.js">http://foobar.com/??a.js,b.js,c.js</a>
<a href="http://foobar.com/??a.css,b.css,c.css">http://foobar.com/??a.css,b.css,c.css</a>
<a href="http://foobar.com/??a.js,dir1/b.js,dir2/c.js">http://foobar.com/??a.js,dir1/b.js,dir2/c.js</a>
<a href="http://foobar.com/somelocation/??1.js,2.js">http://foobar.com/somelocation/??1.js,2.js</a>
<a href="http://foobar.com/??a.js,b.js,c.js?t=20100520">http://foobar.com/??a.js,b.js,c.js?t=20100520</a>
SEE ALSO
<a href="http://code.google.com/p/modconcat/">http://code.google.com/p/modconcat/</a>
<a href="http://www.artzstudio.com/2008/08/using-modconcat-to-speed-up-render-start/">http://www.artzstudio.com/2008/08/using-modconcat-to-speed-up-render-start/</a>
</pre></span><div><div><br></div><div>Regards,</div><div><br></div><div>-- </div>Joshua Zhu<br>Senior Software Engineer<br>Server Platforms Team at Taobao<br>
</div>