08-31-2009 07:47 AM
Hi all
I have a small problem with our 4710 (ver A3 2.2). We have enabled compression for a site, and have removed the excluded MIME types for .js and .css files from the "default-compression-exclusion-mime-type" class-map. However, all .js files are being sent uncompressed (the .css files are being compressed though).
Any ideas why this would be happening?
Thanks
09-01-2009 12:51 AM
You need to specify the mime-type of the JS file.
switch/Admin(config-parammap-http)# compress ?
mimetype Configure mime-type to compress
minimum-size Configure minimum body size to compress
user-agent Configure user-agent not to compress
We only compress traffic matching the correct mimetype (default is text) and the minimum size of 512 bytes.
minimum size : 512
mimetype : [Tt][Ee][Xx][Tt]/.*
Gilles.
09-01-2009 06:06 AM
Thanks Gilles, that worked perfectly.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: