facebook twitter hatena line email

「Html/パフォーマンスチューニング」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(Admin がページ「Html/速度改善」を「Html/パフォーマンスチューニング」に移動しました)
 
(同じ利用者による、間の7版が非表示)
行1: 行1:
apacheなどのパフォーマンスチューニング
+
[[html/パフォーマンスチューニング/解析ツール]]
  
==解析ツール==
+
[[html/パフォーマンスチューニング/apache]]
GTMetrix
+
http://gtmetrix.com/
+
  
Google PageSpeed Insights
+
[[html/パフォーマンスチューニング/画像圧縮ツール]]
https://developers.google.com/speed/pagespeed/insights/?hl=ja
+
  
==ブラウザのキャッシュを利用する(apache)==
+
[[html/パフォーマンスチューニング/jsやcss読み込み]]
*.htaccessに追加
+
<<nowiki />FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|gz)$"> # 24weeks
+
    Header set Cache-Control "max-age=14515200, public"
+
</FilesMatch>
+
<<nowiki />FilesMatch "\.(xml|txt)$"> # 2DAYS
+
    Header set Cache-Control "max-age=172800, public, must-revalidate"
+
</FilesMatch>
+
<<nowiki />FilesMatch "\.(html|htm)$"> # 2HOURS
+
    Header set Cache-Control "max-age=7200, must-revalidate"
+
</FilesMatch>
+
  
参考:http://route58.org/tag/htaccess
+
[[html/パフォーマンスチューニング/その他]]
  
==ファイル圧縮(apache)==
+
[[linux/nginx/パフォーマンス向上]] [ショートカット]
*.htaccessに追加
+
AddOutputFilterByType DEFLATE text/plain
+
AddOutputFilterByType DEFLATE text/html
+
AddOutputFilterByType DEFLATE text/xml
+
AddOutputFilterByType DEFLATE text/css
+
AddOutputFilterByType DEFLATE application/xml
+
AddOutputFilterByType DEFLATE application/xhtml+xml
+
AddOutputFilterByType DEFLATE application/rss+xml
+
AddOutputFilterByType DEFLATE application/javascript
+
AddOutputFilterByType DEFLATE application/x-javascript
+
 
+
参考:http://nelog.jp/compress-components-with-gzip
+
 
+
==複数コネクションを同時に処理==
+
*vi /etc/httpd/conf/extra/xxx.conf
+
KeepAlive On
+
MaxKeepAliveRequests 20
+
KeepAliveTimeout 15
+
 
+
MaxKeepAliveRequestsは1ページあたりの読み込みファイル数+αとする
+
 
+
参考:http://techno-st.net/2009/04/03/keepalive-on-off.html
+

2015年5月23日 (土) 15:44時点における最新版

html/パフォーマンスチューニング/解析ツール

html/パフォーマンスチューニング/apache

html/パフォーマンスチューニング/画像圧縮ツール

html/パフォーマンスチューニング/jsやcss読み込み

html/パフォーマンスチューニング/その他

linux/nginx/パフォーマンス向上 [ショートカット]