• Resolved Z W

    (@willxiao0790)


    Hi Daan,

    Thanks for creating this very good plugin. After installation, it seems running properly. I can see Analytics js is created and loading from our local server.

    Although the “Leverage browser caching” issue is gone in Google SpeedTest Inights result, now it comes up with “Enable compression” issue so basically no SpeedTest points gained and even dropped one point due to this issue.

    Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.
    Enable compression for the following resources to reduce their transfer size by 17.2KiB (58% reduction).
    Compressing https://mywebsite.com/…host-analyticsjs-local/cache/local-ga.js could save 17.2KiB (58% reduction).

    I have W3TC installed, and GZIP running properly. This local-ga.js is the only file not gzipped?

    Could you show me how to fix this?

    Look forward to your response.

    Thanks,
    WZ

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Try emptying all caches. If that doesn’t work, check if gzip is enabled for javascript files…

    Thread Starter Z W

    (@willxiao0790)

    Thanks for your prompt response.

    I forgot to mention that I did empty caches and tried 3 times, but still the same issue.

    Gzip must’ve already enabled for Javascript files, otherwise many other Javascript files of theme and plugins would be reported the same “Enable Compression” in SpeedTest result.

    Thanks

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    I honestly don’t know. Your server does the Gzip-compression. This has nothing to do with WordPress or this plugin. Your server should pick up the file and compress it, before the requested data will be served.

    Have you contacted your host about this?

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    I recently found out about the gzip minimum length setting. Perhaps your server only gzips files above a certain size and the local-ga.js file is too small? Could you check that out?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable compression issue’ is closed to new replies.