Forum Discussion

Zdenda's avatar
Zdenda
Icon for Cirrus rankCirrus
Apr 29, 2013

Compression + caching

Hi all,

 

thinking about compression implemtation and seems that compress jpeh,png and another picture formats used in web is not benefit, since its already compressed?

 

I am playing with idea to compress text,javascript and so on and cash jpeg pictures.

 

What do you think about this ides? Does somebody use this principle already?

 

 

Thanks,

 

Zdenek

 

3 Replies

  • Zdenda,

     

     

    You are correct, there's little point in compressing most image formats (other than SVG) and caching is certainly a good choice. The default compression profile is configured for exactly what you want, text and javascript files! Normally people also recommend you don't compress PDFs but I've found there can be some benefit these days. Some old notes;

     

     

    If you serve SVG images its worth adding the following to the Content Include List as SVG files are actually XML text files that describe an image;

     

    image/svg+xml

     

     

    If your back end web servers are running IIS and ASP.Net, you'll probably observe this content type being used and may wish to add it to the Content Include List;

     

    application/x-www-form-urlencoded

     

     

    If you serve Microsoft documents, you may wish to add the following to the Content Include List;

     

    application/msword

     

    application/vnd.ms-excel

     

    application/vnd.ms-powerpoint

     

    application/vnd.ms-project

     

    application/vnd.ms-xpsdocument

     

     

    If you serve Flash content, you may wish to add the following to the Content Include List;

     

    application/x-shockwave-flash
  • Eh sorry for all these typos in my first post there:-D

     

    Thanks for your reply, basically you assured me with the thing I wanted to implement. I will use some of your notices, as we have IIS behind the LB..

     

    Zdenek