Updated answer for 2017: Yes.
The size column in the Network tab in Chrome Developer Tools has both the compressed and uncompressed size, for gzip, brotli and whatever comes in future. Eg:
Here the compressed size is 242 KB, the uncompressed size is 1.1 MB
To see both, ensure you have Devtools showing large request rows. It's the first icon in "View" ...
Google makes reference to gzip and image/binary files at Minimize payload size
Don't use gzip for image or other binary files.
Image file formats supported by the web, as well as videos, PDFs and other binary
formats, are already compressed; using gzip on them won't provide any
additional benefit, and can actually make them larger. To compress
images, see ...
Another way to accomplish this is with cURL:
curl -i -H "Accept-Encoding: gzip" http://someurl.com | wc -c
curl -i http://someurl.com | wc -c
The number shown after each command is the number of bytes that crossed the wire.
Yes, Amazon Cloudfront can now serve GZip'ed / HTML Compressed content to end users fairly easily. This used to be rather hard, but Amazon added this to Cloudfront around November 2010.
What you are looking for is called "custom origin". The gist of it is:
You set up your own web server, and configure this server to correctly compress content for ...
The first thing to keep in mind is that compression checkers sometimes lie for various reasons, so take their warnings with a grian of salt. As a few people have recently said on Stack Overflow ySlow is not gospel (but I do like it myself).
What I would suggest doing, rather than employing zlib.output_compression in php, is to enable mod_deflate in Apache. ...
You can add it to the existing .htaccess file your Wordpress creates for SE friendly URLs. If you don't have an htaccess file from Wordpress then you can create your own with the GZIP code in it and it won't break Wordpress at all.
Compress resources with GZIP
This is another one of those things where new technology is being shoved into our faces and some companies and/or tools aren't setup to handle it (such as the Google page speed insights). After looking at the new compression info, it seems only newer web browsers support it.
A large number of tools and web servers still ...
Put these lines in your .htaccess and PageSpeed Insights will see your gzip compression:
It works for my sites.
Enabling compression is almost universally a good idea. You might not save much data on very small pages, but you also won't waste very much CPU compressing them.
An even better idea, if you're trying to ensure your site is fast and reliable, is to put a caching service like CloudFlare between your users and your server. Having a good intermediary will ...
GitLab Pages will serve pre-compressed .gz files that exist alongside uncompressed equivalents. A general solution that should work with most static publishing systems is to put this as the last step in the build process in .gitlab-ci.yml:
find public \( -name '*.html' -o -name '*.css' -o -name '*.js' \) -print0 | xargs -0 gzip -9 -kv
You can also easily ...
It isn't a virus or some sort of FTP compression.
It could be a couple of things going on:
For example, if the server is running Linux and your desktop is running Windows it is likely that your server and desktop are set to display file sizes differently.
In some operating systems, file sizes tend to be expressed mebibytes (e.g. 1 GiB = 1,024 MiB) while ...
Lossless VS Normal Compression
Looks like you're getting your wires mixed, Google insights refers to lossless compression, not the JPEG encoder. jpegoptim, jpegtran, jpegrescan, mozjpeg1, mozjpeg2 and so on are all lossless compression tools, not JPEG encoders such as Guetzli.
What this means is it takes an already compressed file and makes it even smaller ...
It's a good question and there is no one size fits all answer. However with the rise of mobile networks the answer is almost always compress as much as possible. In the long run uncompressing on the client will always use less energy than using more bandwith.
Gzip is very lightweight but it can become an overkill when:
the compression level is set to too ...
Data compressed with gzip contain all the information needed to decompress the data. This means an attacker can simply decompress the data, same as the browser. So this is no more secure than plain text. And the compression level in gzip is actually irrelevant for decompression since it only says how much efforts will be done in finding common pattern in the ...
You're talking about the benefits to your bandwidth costs, but then also comparing the performance of the page load in a browser. They're two different things.
Anytime you gzip a request, something has to actually do the compression (in your case, the F5) and the client (or technically proxies) has to handle the decompression. This can add more latency to ...
Does CloudFlare gzip resources?
Yes, CloudFlare gzips resources that pass through our network. We also gzip items based on the browser's useragent to help speed up page loading time.
If you're already using gzip we will honor your gzip settings as long as you're passing the details in a header from your web server for the files.
Interesting case, since the page is fairly simple. Firstly, I'd agree with closetnoc's comment that your page is already pretty fast - it's clear you've spent some time working on speed, so any further gains will be micro-optimizations at best. (Faster DNS would certainly help though, as you said.)
My pages are served gzipped and I flush the buffers ...
That's exactly it - the file gets smaller because the colors are combined into fewer, more prominent colors. For example, multiple shades of blue living next to each other will combine to display as fewer, more uniform shades, in the process making the image file less heavy. Each time you run your software, it'll find places to optimize this process, though ...
Your files will be smaller if you minify them before using gzip.
Gzip isn't perfect compression. It doesn't remove remove all the redundancy that minifying does.
Gzip is lossless compression. At the very least that means it has to preserve information such as the number of indentations on each line. It may only take a byte or two for preserving that ...
No.... image sprites are not good for photos and complex pictures.
This is because the file size would simply become far to big and would delay the page from loading and increasing the time it takes for users to see any content.
Sprites are good for basic template styling images that get reused across the site, this for many reasons is because it becomes ...
The question here is why you would need to minify html, gzip should be fine on its own, the biggest single cost in front end speed is http requests at the server end and images in terms of pure bandwidth. HTML is so small it's barely worth the effort.
I would suggest using tools like Google Page Speed or Yahoo!'s YSlow (and reading Yahoo!'s research on the ...
All Gzip decompression programs can decompress any of the levels. The compression level doesn't change the format of the output at all.
The compression level is good for managing load on your server. Gzip will spend many more CPU cycles trying to compress the data better when you specify a higher compression level.
In my experience the benefits of ...
To directly answer your question I would differ you to the Better Minify Plugin: https://wordpress.org/plugins/bwp-minify/
It will easily let you compress your .js files.
And it will allow you to move your .js scripts to the footer to enhance your above-the-fold loading. HOWEVER I want to point out that moving all of your .js scripts to the footer isn't ...
What does the "Disable Cache" have to do with gzip and compression?
Nothing directly. Except that when "Disable Cache" is checked (ie. the local browser cache is disabled) the server is forced to send a fresh response (and body). You'd get the same response if you simply cleared your browser cache before making the request (with "Disable Cache" unchecked).
You can use plugin https://wordpress.org/plugins/bwp-minify/
And here is full detailed instruction given here
Along with it I suggest gzip your website.
A complete guide to it is given here : https://www.bmthrive.com/how-to-gzip-website/
If your website uses images then ...
I simply compressed them using gzip:
My server nginx is enabled to send compressed files.
It looks like you're trying to send a double-compressed file and a compressed file.
When you gzip a file and host it on a server that is set up to compress and send files, then you basically compressed the same file twice and when one level of ...
This is an issue with the test, not with anything you are supposedly doing wrong. From your screen-shot I can see that the potential size savings is only 526 bytes which is well within the size of a single network packet (an MTU, about 1500 bytes) which makes it unlikely that compression of that last wee bit of data will help.
At best, you would eliminate a ...