Skip to content

Instantly share code, notes, and snippets.

@lukechilds
Created May 29, 2017 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukechilds/041a555bd3202cc68d081288346dde4c to your computer and use it in GitHub Desktop.
Save lukechilds/041a555bd3202cc68d081288346dde4c to your computer and use it in GitHub Desktop.
UTF-8 vs gzip vs gzip+Base64
$ wget todomvc.com
--2017-05-29 16:13:28-- http://todomvc.com/
Resolving todomvc.com... 192.30.252.154, 192.30.252.153
Connecting to todomvc.com|192.30.252.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 254815 (249K) [text/html]
Saving to: 'index.html'
index.html 100%[===========================>] 248.84K 215KB/s in 1.2s
2017-05-29 16:13:31 (215 KB/s) - 'index.html' saved [254815/254815]
$ cat index.html | gzip > index.html.gz
$ cat index.html.gz | base64 > index.html.gz.b64
$ ls -lah index.html*
-rw-r--r-- 1 lukechilds staff 249K 14 Apr 12:29 index.html
-rw-r--r-- 1 lukechilds staff 63K 29 May 16:13 index.html.gz
-rw-r--r-- 1 lukechilds staff 84K 29 May 16:13 index.html.gz.b64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment