• Resolved wood1e

    (@wood1e)


    Hi,

    I have installed Gzip compression using HTAccess and some of the files are not compressing.

    I have gone to the plugin developers and only one has come back, saying that the compression didn’t work for him either! He tried W3Cache plugin as well.

    The reason he thought may be the problem is that the files not compressing have numbers at the end of them.

    This is what I am using in HTAccess https://screencast.com/t/taJIPmgQZO

    This is my site: https://screencast.com/t/pf2GJm50nzM

    Any help with Gzip compression would be most appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    Ask your hosting provider if mod_deflate or mod_gzip is installed and active on your server. Just because you put in the line to turn it on doesn’t actually mean it’s there. ??

    Thread Starter wood1e

    (@wood1e)

    Hi,

    I checked with hosting and they stated it is all working fine, with the exception of lots of files, all ending with, for example: ?ver=2.5.1

    more specifically this is one file: jquery.prettyPhoto.js?ver=4.2.3

    So now I am wondering if Gzip doesn’t work on what appear to be variable files?!?

    Confused! ??

    Moderator James Huff

    (@macmanx)

    Usually, those break caches on purpose.

    1. What files are having that added to them? (In many cases, it’s for good reason.)

    2. What are you using to identify that gzip isn’t enabled?

    3. Are you using a caching plugin (like WP Super Cache or W3 Total Cache) or caching reverse proxy (like Cloudflare, Varnish, or Google Pagespeed)?

    Thread Starter wood1e

    (@wood1e)

    Hi,

    Many thanks for the response.

    1 & 2: This is a list of the files not included in Gzip – according to GTMatrix – https://screencast.com/t/tZ9DQoxoO

    3) no I using this: https://screencast.com/t/z7WG8xdTdd in .HTAccess

    So maybe Gzip doesn’t work with these ‘style’ of JS/CSS files.

    I haven’t heard back from the specific plugin developers, only the theme developer and he states he hasn’t a clue.

    And the hosting company state it is working because of this: https://screencast.com/t/aypvueAHwO

    So for me confusion reigns ??

    Moderator James Huff

    (@macmanx)

    Oh, it’s working like your host says, it’s in the headers there.

    It’s hard to tell with GTMetrix. Do they mean you *aren’t* compressing them, or do they mean they can be compressed *more*? I love GTMetrix, but that part always bothers me.

    Anyway, that ?version schema is designed to break caching if ever updated (you don’t want the old version of a theme style still cached after updating it). I’m not sure if it would break gzip though, but it probably does depending on the configuration.

    To be totally honest though, it’s not that much space saved, I’d personally leave it as-is and not mess with it.

    Thread Starter wood1e

    (@wood1e)

    Thanks for that. I will leave, just be trying to find ways to speed up the site.

    I haven’t gone the whole hog with a cache plugin to minify – CSS and HTML as it always seems to break everything.

    So adding elements to htaccess as I go along.

    Slight subject change, but I have been looking at using external files for JS and CSS…Trouble all the ones that ‘appear’ not to be compressing are internal files, specific to plugins!

    I shall keep plugging away at finding speed ??

    Thanks for your help

    Moderator James Huff

    (@macmanx)

    Slight subject change, but I have been looking at using external files for JS and CSS…Trouble all the ones that ‘appear’ not to be compressing are internal files, specific to plugins!

    To be totally honest, don’t even bother with that. It’s silly for three reasons:

    1. It will likely break even more things than minify does.

    2. How do you even know the external server is faster?

    3. What happens when it goes offline?

    Thread Starter wood1e

    (@wood1e)

    Ok message received…I will keep digging ??

    Moderator James Huff

    (@macmanx)

    You’re welcome! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Gzip Compression not working’ is closed to new replies.