cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1083
Views
5
Helpful
2
Replies

ACE 4710 & gzip compression

osiristrading
Level 1
Level 1

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

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

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.

Thanks Gilles, that worked perfectly.

Getting Started

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: