Jim thanks for answering and you're right. i didn't provide enough information.
I finally got it working. For people who will have trouble with this :
I have a .htaccess file in my /Scripts/ folder which contains all mai .js files and the gzipped .js.gz files.
The .htaccess contains :
ForceType text/javascript
Header set Content-Encoding: gzip
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !”.*Safari.*”
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.js$ $1\.js.gz [L]
ForceType text/javascript
It seems to work fine with safari also.
Jim your code doesn't seem to work, as you described it sound more rational to me as a newbie but i guess there's a misspelling somewhere. ( which i cannot find :) ).
I checked the 2 variants with some tools i found with google
www.websiteoptimization.com/.../analyze/
<snip>
also with a plugin for mozzila firefox. I don't know if this is the proper testing mode. Please tell me.
Thank you again for your answer and help.
[edited by: jdMorgan at 2:42 am (utc) on Feb 22, 2010]
[edit reason] Sorry, no links, See TOS and Charter. [/edit]