I habe an issue, I must gzip a prototype Lib, however i totaly have no clue how to get this done, how to start und so how exactly does it really works :)

I've found some lessons but that wasn't helpfull...

So I've got a folder with my JS Files

/compressed/js/ 1.js 2.js 3.js

I caling this files for any test within this file


<link rel="javascript" type="text/js" href="js/tabs.js" />
<link rel="javascript" type="text/js" href="js/fb.js" />

What exactly I must do? :)

You should use apache's mod_deflate to instantly compress your files quickly.


AddOutputFilterByType DEFLATE text/html text/xml text/css text/javascript 


To see if your apache server has output compression enabled, place the example above into an .htaccess file. Then load an html or js file through the server and appearance the headers for "Content-Encoding", whether it states gzip or deflate, it's enabled.

Possibly you should think about the mod_deflate module for Apache: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

You have to handle these items while using configuration for HTTP server that you're using.

Would you please let me know which server you're using ? IIS/Apache ?

Following is link for compression using the IIS