don’t compress image with mod_deflate

Apache üzerinde mod_deflate ile compressing yapıyor ve image’ların compress edilmesini istemiyorsanız; location arasına yazılacak aşağıdaki syntax aracılığıyla, belirtilen image tiplerini compressing dışında tutabilirsiniz.Bu durumda seneryo şöyle olur, “AddOutputFilterByType DEFLATE”  ile izin verilen diğer  content compress edilerek istemciye yollanırken resim formatlı dosyalar compress edilmez.

<Location />

#Compressing Aktif
SetOutputFilter DEFLATE
\.(?:png|jpe?g|gif)$ no-gzip dont-vary
</Location>

Comressing işlemi, ciddi oranda cpu üzerinde aritmetik işlem yapan mekanizmaya sahip olduğu için sunucu’ya ait cpu fazlaca yorulur.Bu duruma istinaden istenmeyen type’lar bu tip direktifler ile devre dışı bırakılabilir ya da compressing ayri bir makine üzerinde yapılabilir.

Share on Facebook

Leave a Reply

Your email address will not be published. Required fields are marked *

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>