aboutsummaryrefslogtreecommitdiff
path: root/content/posts
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-01-29 11:20:04 -0500
committerPaul Duncan <pabs@pablotron.org>2022-01-29 11:20:04 -0500
commit5ef9332ce5860e0b3cb631bfb4bb8ecc5ea3e794 (patch)
tree4f9742fa19a6aa662f92b448d27c242bff68b66d /content/posts
parent64ac1a8cf2e27a8fb5e180633393c68acfb797eb (diff)
downloadpablotron.org-5ef9332ce5860e0b3cb631bfb4bb8ecc5ea3e794.tar.bz2
pablotron.org-5ef9332ce5860e0b3cb631bfb4bb8ecc5ea3e794.zip
posts/media-shrinkage: add http2 info
Diffstat (limited to 'content/posts')
-rw-r--r--content/posts/2022-01-28-media-shrinkage.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/content/posts/2022-01-28-media-shrinkage.md b/content/posts/2022-01-28-media-shrinkage.md
index da13cf8..2b99736 100644
--- a/content/posts/2022-01-28-media-shrinkage.md
+++ b/content/posts/2022-01-28-media-shrinkage.md
@@ -38,6 +38,7 @@ Recently I made the following site improvements:
fallback to [PNG][] ([progressive enhancement][]).
6. Configured [mod\_deflate][mod_deflate] to compress [SVGs][svg] (see
note about [BREACH][] below).
+7. Enabled [HTTP/2][] for this site (how did miss I this before?).
**Note:** Using [HTTP compression][] ([mod\_deflate][mod_deflate],
[mod\_brotli][mod_brotli], etc) with [dynamic web pages][] can expose
@@ -53,6 +54,8 @@ load in [Chrome][]:
### Notes
+* I will post later about the [progressive enhancement][] friendly
+ [`<figure>`][figure] [shortcode][].
* The [minify][] command is a thin wrapper around the excellent
[tdewolff/minify library for Go][tdewolff-minify].
* I also investigated [AVIF][]. Better compression than [WebP][], worse
@@ -61,10 +64,12 @@ load in [Chrome][]:
`convert -quality 100 -define webp:lossless=true src.png dst.png`
* [Apache][] [mod\_deflate][mod_deflate] config:
`AddOutputFilterByType image/svg+xml`
+* [HTTP/2][] in [Apache][]: Install [mod\_http2][mod_http2], add
+ `Protocols h2 http/1.1` to config.
* [Debian][]: Add `image/webp webp` to `/etc/mime.types`.
**Update (2022-01-29):** Small formatting, grammar, and spelling fixes.
-Added warning about [BREACH][] and link to
+Added note about [HTTP/2][], warning about [BREACH][], and link to
[tdewolff/minify][tdewolff-minify].
[svg]: https://en.wikipedia.org/wiki/Scalable_Vector_Graphics
@@ -113,3 +118,7 @@ Added warning about [BREACH][] and link to
"SVG, JavaScript, JSON, HTML, and CSS minification library for Go."
[go]: https://golang.org/
"Go programming language"
+[http/2]: https://en.wikipedia.org/wiki/HTTP/2
+ "HyperText Transfer Protocol, version 2"
+[mod_http2]: https://httpd.apache.org/docs/2.4/howto/http2.html
+ "Apache HTTP/2 module"