Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Compact Web - Remind "web compression" -

Compact Web - Remind "web compression" -

WCAF Vol.8 (2012/04/07) の発表資料。
Web に関する圧縮技術についてのお話。

Tomokazu Kiyohara

April 07, 2012
Tweet

More Decks by Tomokazu Kiyohara

Other Decks in Technology

Transcript

  1. Target Image files ( jpg, png ) Text files (

    html, style sheet, javascript ) Transport (http)
  2. Target Image files ( jpg, png ) Text files (

    html, style sheet, javascript ) Transport (http)
  3. Target Image files ( jpg, png ) Text files (

    html, style sheet, javascript ) Transport (http)
  4. Target Image files ( jpg, png ) Text files (

    html, style sheet, javascript ) Transport (http)
  5. LoadModule deflate_module libexec/apache22/mod_deflate.so <Directory "/your-server-root/manual"> AddOutputFilterByType DEFLATE text/html application/javascript text/css

    </Directory> Apache keyword : “DEFLATE” (mod_deflate) Reference : http://httpd.apache.org/docs/2.0/ja/mod/mod_deflate.html Sample : httpd.conf
  6. server { gzip on; gzip_types text/css application/javascript # text/html default

    included } nginx keyword : “gzip” (HttpGzipModule) Reference : http://wiki.nginx.org/HttpGzipModule Sample : nginx.conf
  7. Conclusion Good response for Smart Phone ( Narrow band &

    Big contents ) “Web Compression” Many Techniques Image Files, Text Files → Use software Transport → Setup server