Re: [openresty-en] CCS/JS/html minification in lua

597 views
Skip to first unread message

agentzh

unread,
Nov 29, 2012, 8:31:45 PM11/29/12
to openre...@googlegroups.com
Hello!

On Wed, Nov 28, 2012 at 6:12 PM, edmund.lhot wrote:
> I've used openresty to serve a wordpress blog and I'm looking for a way to
> minify some static content. I found some examples in perl
> (http://bloke.org/linux/minify-css-fly-nginx/) but I'm in doubt if is the
> best approach, cause I'm already using lua to make a lot things so I prefer
> to use lua instead.
>
> Someone knows any way to do minification in lua?
>

Just FYI, we (CloudFlare) is going to implement this in Lua and C in
the very near future. I'll try to make it opensource when it is mature
enough :)

Best regards,
-agentzh

Edmund Lhot

unread,
Nov 30, 2012, 7:00:38 PM11/30/12
to openresty-en
It would make me happy! :)

Actually do you use the perl approach? Does it have a good
performance?

Tks

> Best regards,
> -agentzh

agentzh

unread,
Nov 30, 2012, 8:46:16 PM11/30/12
to openre...@googlegroups.com
Hello!

On Fri, Nov 30, 2012 at 4:00 PM, Edmund Lhot wrote:
>
> It would make me happy! :)
>
> Actually do you use the perl approach?

No. Nowadays I never use Perl for online systems, just for offline tools.

> Does it have a good performance?

Performance is always near the top of my concerns :) Or it'll be useless.

Best regards,
-agentzh

xal...@gmail.com

unread,
Mar 5, 2014, 1:22:24 PM3/5/14
to openre...@googlegroups.com
Did it pan out? Is there some opensource project with this project?

Aapo Talvensaari

unread,
Mar 7, 2014, 9:22:22 AM3/7/14
to openre...@googlegroups.com
Doesn't ngx_pagespeed already do all this (should this module be integrated with default OpenResty bundle? Licensing issues?)
https://github.com/pagespeed/ngx_pagespeed

On Thursday, November 29, 2012 4:12:04 AM UTC+2, Edmund Lhot wrote:
Hi,


I've used openresty to serve a wordpress blog and I'm looking for a way to minify some static content. I found some examples in perl (http://bloke.org/linux/minify-css-fly-nginx/) but I'm in doubt if is the best approach, cause I'm already using lua to make a lot things so I prefer to use lua instead.

Someone knows any way to do minification in lua?

Tks.

Edmund

Makailol Charls

unread,
Mar 29, 2014, 6:48:29 AM3/29/14
to openre...@googlegroups.com
If we use pagespeed, we will have to use it's caching mechanism . I think It can not be used with nginx proxy module to cache the response.

Is there any Nginx C module available to minify js on the fly? I think js minification is more important compare to css and html as every web page contains multiple javascript files and total size of js in web page could be more than css and html.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages