Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Emre Vona

    (@emrevona)

    because in the gzip rule there is no rule for svg. I will add it. If you don’t want to wait for it, you can use the code below

    AddOutputFilterByType DEFLATE image/svg+xml

    Plugin Author Emre Vona

    (@emrevona)

    and if it solves your problem, can you inform me please?

    Thread Starter geraldjim

    (@geraldjim)

    Thanks for the prompt response.

    I added the string to .htaccess file and I clear the cache after it. But did not fix the problem according the Google. See link

    https://developers.google.com/speed/pagespeed/insights/?hl=en&utm_source=wmx&utm_campaign=wmx_otherlinks&url=http%3A%2F%2Fbythebay.com.au%2F&tab=desktop

    What I don’t get is that Google reports this but GTmetrix does not.

    What do you suggest?

    Thread Starter geraldjim

    (@geraldjim)

    BTW – here is the htaccess change I made so you can check

    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
    AddOutputFilterByType DEFLATE image/svg+xml

    Also added this in the expiry section
    ExpiresByType image/svg+xml A2592000

    Thread Starter geraldjim

    (@geraldjim)

    OK – over the pas few days it seem that the problem is with Litespeed server as the WT3C people also have encounter the same problem.

    As a consequence of this I found out that I have a choice of PHP version ie currently running 5.3 but can move to 5.4 or 5.5. Also can enable xcache or memcached. Is this worth doing in relation to you plugin?

    Plugin Author Emre Vona

    (@emrevona)

    no. but why does it so important? just one file.

    Thread Starter geraldjim

    (@geraldjim)

    Hi Emre,

    The reason why this file is so important its because the file is over 1mb in size and the slowest part of the download. According to Google I could reduce the file by 73% which would the improve my pageload time significantly.

    Thanks

    Thread Starter geraldjim

    (@geraldjim)

    BTW – the problem is not limited to SVG. Althougb I included the following:

    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf

    TTF are not compressed either but I was not too concerned about these files as they are small.

    Plugin Author Emre Vona

    (@emrevona)

    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf

    if I add these into source code, it will work?

    Plugin Author Emre Vona

    (@emrevona)

    Hi again geraldjim, I fixed the issue. Can you do the steps below please?

    – Deactive the plugin
    – Remove the plugin
    – Download the plugin again
    – Re-install

    and Can you inform me after testing please?

    Thread Starter geraldjim

    (@geraldjim)

    Hi Emre,

    Tried your version as specified and checked the htaccess file in between steps. The htaccess file was modified but the fix did not work.

    After, testing and spending quite a lot of time on this issue I believe the problem is a Litespeed configuration issue. It seem that litespeed by default does not compress images and given that SVG is an image type it is getting ignored.

    I have raised the question to the Litespeed people
    https://www.litespeedtech.com/support/forum/threads/problem-with-svg-compression.8572/#post-78772

    When I get an answer will let you know.

    Thanks you for your efforts.

    Gerald

    Plugin Author Emre Vona

    (@emrevona)

    thank you. I added what you said… I will wait for your answer.

    Thread Starter geraldjim

    (@geraldjim)

    Hi Emre,

    Got the answer from the litespeed developers and currently the Apache AddOutputFilterByType directive is not supported by LiteSpeed yet.

    By default they compress the file automatically except for images. For the next release they plan to add SVG as a compressible file in the default settings.

    Thanks for your help and I think we can close this issue.

    Gerald

    Plugin Author Emre Vona

    (@emrevona)

    thank you geraldjim but I have already added SVG into code.

    https://github.com/wp-plugins/wp-fastest-cache/blob/master/inc/admin.php

    you can see the rule on the 270. line

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘SVG not being compressed’ is closed to new replies.