apmod
mod_concatx
mod_concatx: the ability to join multiple files together in a single request. This is a performance optimization. instead of requesting several seperate css or javascript files from your server, you can do it one request. It is based on mod_concat but makes improvements.
- use the browser cache in effect
- avoid service code leak
- avoid content stick together
- support gzip
Usage
<script src="http://www.example.com/js/??js1.js,js2.js,js3.js" ></script>
Apache Module Setting
modify config: "conf/httpd.conf"
LoadModule concatx_module modules/mod_concatx.dll
Advanced Settings:(Default)
<IfModule concatx_module>
ConcatxDisable Off
ConcatxCheckModified On
ConcatxSeparator On
ConcatxMaxSize 1024
ConcatxMaxCount 10
ConcatxFileType js,css
</IfModule>
Setting Meaning
ConcatxDisable On/Off
Whether to disable mod_concatx
ConcatxCheckModified On/Off
Detects whether a file change, suggestion: On
ConcatxSeparator On/Off
Whether add newline when concat files, suggestion: On
ConcatxMaxSize 1024
Limit the max size of all files, suggest lower
ConcatxMaxCount 10
Limit the max number of all files, suggest lower
ConcatxFileType js,css
File types, if without limiting fill ","
Support gzip
This feature depend on mod_deflate, one of native apache modules so modify apache config "conf/httpd.conf", and add:
LoadModule deflate_module modules/mod_deflate.so