user198003
user198003

Reputation: 11161

gzip compression for jquery - what i missed?

trying to enable gzip compression for javascripts (jquery libs) I have on my site.

I do have enabled deflate in Apache's httpd.config file, and I have added next lines in .htaccess:

RewriteEngine On
AddOutputFilterByType DEFLATE text/html text/plain text/javascript 

But, when I check with Google's page speed web performance tool, it gives me information that js is not compressed.

Can you tell me what I do wrong and how can I enable gzip compression for my web app?

Thank you in advance!

Upvotes: 0

Views: 1570

Answers (1)

thejh
thejh

Reputation: 45578

Javascript isn't text/javascript, it is application/javascript.

Upvotes: 1

Related Questions