Support » Plugin: ShortPixel Image Optimizer » Gzip & ShortPixel Image Optimizer

  • zesco

    (@zesco)


    Hi,
    a pingdom exam on my web site show a problem for image compression: in this case, can you suggest the use of your fantastic plugin ShortPixel Image Optimizer as an alternative to the modification of .htaccess to enable Gzip compression as below:

    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>

    or for Apache server:

    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript

    Thank you a lot for your support,
    zesco

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    Hey Zesco,
    thanks for your kind words and for your question.

    ShortPixel only optimizes images, it won’t touch the “text” files (e.g. html/css/etc) so in my opinion it won’t help much to make a change to your .htaccess.

    Rather show me where exactly Pingdom complains about image compression so we can investigate why this is happening.

    Thank you,
    Alex

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.