Hello,
I have newspaper theme v6.2 installed on my website.
URL : http://www.naukrinama.com
I have gzip compression enabled onto my website/server and have added rules for it in .htaccess file also. The other testing tools for compression is showing the gzip compression enabled, but google page speed is still showing the compression error.
How can i get it resolved.
Google Page Speed URL : https://developers.google.com/speed/pagespeed/insights/?url=naukrinama.com
Other Tools URL : http://checkgzipcompression.com/?url=http%3A%2F%2Fwww.naukrinama.com
https://varvy.com/tools/gzip/
http://www.gziptest.com/result/www.naukrinama.com
https://gtmetrix.com/reports/www.naukrinama.com/UZUzM84r (But gtmetric score for gzip compression is very low)
Also can you tell me how can I increase I gzip compression score.
@r1kay
Welll … minifying CSS is unrelated to gzip compression… minification removed all the blank spaces. Some services do this as part of hosting, or you can do it manually — see my sticky post on optimization for how to do that. (LINK BELOW)
@rishab55555
For the woff fonts you need to add that element to your htaccess — again see my stick how to topic.
YOu also have zero control over the “time to live” for stuff on other websites like google stuff.
You both may find my tutorials helpful here:
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
🙂
-
This reply was modified 10 years by
simchris.
Hey Chris, thanks for the quick reply, been a long time sincs we spoke. I know minifying isn’t the same as compressing. Google page speed says that compressing visual composer css version something something could save 750kb alone. I’ve run a webpagespeed test and it says that some files are gzipped, but a lot of then don’t.
I normally run wp super cache on plesk with nginx and have gzip compression enabled with some nginx rules, that works perfectly fine. But I’ve switched to apache and wp super cache with mod_rewrite rules and no matter what I try I just can’t get all the css and Javascript to get gzipped. Ive tried .htacces deflate rules and even tried a plugin to do the work for me.
I’m totally lost and think about switching back to nginx with my own additional config. What am I doing wrong?
Have you “minified” the main CSS file?
Use the copy/paste minifier site I recommend, to replace your existing CSS file in theme folder. Shazam. 😉
or this one:
http://cssminifier.com/
basically make copy of your style.css file; then open original, select all, copy, paste into box, then minify, then copy the “minified” version into your original file put on the server. This compresses the file, which was the error most people see on google pagespeed — it’s not “compression” of the file via gzip, it’s compressing data in the file … semantics… 🙂
Try that if you hadn’t already…. !
Of course I’m doing plesk on apache, and not using nginx for the baseline stuff only some esoteric stuff.
Yeah I manually minified the js composer css (it’s the biggest file according to gps), didnt shave off that many. Pagespeed still says compressing (gzipping) the file would reduce it with from 600kb, from 750 to roughly 150. Most gzip testers say my gzip is enabled, but somehow GPS keeps telling me I could roughly shave of 2MB (!!) by gzipping all the css. So not all files al being compressed with my htacces rules. Im running a website with an older version of Newspaper on the same server with nginx and GPS doesn’t mention anything about compressing. Have no idea how to fix this…
Also, why do you prefer apache on plesk over nginx handeling php? I’m on a VPS (6gn ram) and my hosting provider said using nginx would reduce my pageload way more than apache. When I have over 2000 real time apache starts to flood the ram :/ That’s why I switched to nginx handeling PHP and configure WP Super Cache with it. Doesn’t break a sweat!
Here is a screenshot from page speed. I have gzip compression enabled via htacces (
), but somehow my server can’t compress these files. 
This test from wegpagespeed shows some files are and some files aren’t being compressed: 
Can someone from tagDiv please give me an answer as why to these files won’t get compressed?
Hi,
I have checked your site and it seems that only the woff is excluded from the gzip compression – http://screencast.com/t/4vgPvJ0hNYp Please try the following guide – https://blog.bigdinosaur.org/gzipping-at-font-face-with-nginx/ and see if it helps.
Thanks!
@r1kay
we don’t use nginx as we have dedicated server with Xeons and 32GB RAM and gigabit switch, and don’t even need to use caching plugin due to mod_pagespeed and other stuff on server side. But main reason is we have some old cgi/perl/shtml/ssi stuff on our main business site — not using php — which still runs better than nginx for that stuff, and our 20 years familiarity with apache. 🙂
Chris and Alin,
I’ve followed all the instructions and face the same issue. Here is a link with analysis:
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fshowtopmodel.ru%2Fistorii-uspeha%2Fbest%2Fannaazarova.html&tab=mobile
Can you please have a look at the case and comment. Thank you in advance.
@Novaque
I don’t see anything on yours releated to gzip/compression.
Browser Caching time refers to “time to live” which can be fixed with the stuff in my sticky post, such as adding the .woff type handler, and the svg — you might have to get them to add the filetype to server (I had to do that). You can’t do anything about the stuff living on other websites than your own.