Nginx-Lua-minification-library
Nginx-Lua-minification-library copied to clipboard
"text/html" Regular Expressions
trafficstars
local content_type_list = {
{
"text/html",
{
--[[
Usage :
Regex, Replacement
Text, Replacement
]]
--<!--[if gt IE 8]><!--> <html> <!--<![endif]--> - OK
{"<!%-%-[^%[]-->", "",},
{"%s%s+", " ",},
{"\n\n*", " ",},
{"\n*$", ""}
}
}
}
For CSS and JS, I use Nginx Pagespeed.