ffzhuang
4 Nov 2009, 7:20 AM
Hi, All:
Today we add the following config in our Apache server,
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
application/javascript
And our js file size are huge reduced. The big one reduce as follow:
ext-all.js - from 609 k to 167 k
home_mini.js - from 523 k to 101 k
It makes our site load really quick and it is really help. You can try it at our site to see the js file size: www.feyasoft.com
(http://www.feyasoft.com)
Notice
Enabling filters with AddOutputFilterByType may fail partially or completely in some cases. For example, no filters are applied if the MIME-type could not be determined and falls back to the DefaultType setting, even if the DefaultType is the same.
However, if you want to make sure, that the filters will be applied, assign the content type to a resource explicitly, for example with AddType or ForceType. Setting the content type within a (non-nph) CGI script is also safe.
Maybe your guy already know this, but I just know this - for share in case.
Regards!
Fenqiang Zhuang
Today we add the following config in our Apache server,
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
application/javascript
And our js file size are huge reduced. The big one reduce as follow:
ext-all.js - from 609 k to 167 k
home_mini.js - from 523 k to 101 k
It makes our site load really quick and it is really help. You can try it at our site to see the js file size: www.feyasoft.com
(http://www.feyasoft.com)
Notice
Enabling filters with AddOutputFilterByType may fail partially or completely in some cases. For example, no filters are applied if the MIME-type could not be determined and falls back to the DefaultType setting, even if the DefaultType is the same.
However, if you want to make sure, that the filters will be applied, assign the content type to a resource explicitly, for example with AddType or ForceType. Setting the content type within a (non-nph) CGI script is also safe.
Maybe your guy already know this, but I just know this - for share in case.
Regards!
Fenqiang Zhuang