diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/posts/2022-01-28-media-shrinkage.md | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/content/posts/2022-01-28-media-shrinkage.md b/content/posts/2022-01-28-media-shrinkage.md index 2b99736..81057a1 100644 --- a/content/posts/2022-01-28-media-shrinkage.md +++ b/content/posts/2022-01-28-media-shrinkage.md @@ -64,13 +64,16 @@ 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. +* [HTTP/2][] in [Apache][]: Install [mod\_http2][mod_http2] and add + `Protocols h2 http/1.1` to the [Apache][] config. You should also + switch from [mpm\_prefork][mpm_prefork] to [mpm\_event][mpm_event] or + [mpm\_worker][mpm_worker], but if you're using a non-threadsafe + module like [mod\_php][mod_php] then this will give you some grief. * [Debian][]: Add `image/webp webp` to `/etc/mime.types`. **Update (2022-01-29):** Small formatting, grammar, and spelling fixes. -Added note about [HTTP/2][], warning about [BREACH][], and link to -[tdewolff/minify][tdewolff-minify]. +Added [HTTP/2][] note, [BREACH][] warning, and +[tdewolff/minify][tdewolff-minify] link. [svg]: https://en.wikipedia.org/wiki/Scalable_Vector_Graphics "Scalable Vector Graphics" @@ -122,3 +125,13 @@ Added note about [HTTP/2][], warning about [BREACH][], and link to "HyperText Transfer Protocol, version 2" [mod_http2]: https://httpd.apache.org/docs/2.4/howto/http2.html "Apache HTTP/2 module" +[mpm_event]: https://httpd.apache.org/docs/2.4/mod/event.html + "Apache multi-processing module that uses worker threads. Newer than mpm-worker." +[mpm_worker]: https://httpd.apache.org/docs/2.4/mod/worker.html + "Apache multi-processing module that uses worker threads." +[mpm_prefork]: https://httpd.apache.org/docs/2.4/mod/prefork.html + "Apache multi-processing module that uses pre-forked processes." +[mod_php]: https://cwiki.apache.org/confluence/display/httpd/php + "PHP module for Apache" +[vhost]: https://httpd.apache.org/docs/2.4/vhosts/ + "Apache virtual host" |