Firefoxでページを読み込むのに10秒かかり、画像を読み込むのにさらに10秒かかるサイトがあります。これは、apacheで実行されているphpページです。画像は単なる静止画像です。
それはクロームで美しく動作します....インスタントロード。
答えをグーグルで検索すると、Firefoxを混乱させるコンテンツの長さの欠如と、存続の維持に関する問題の可能性が指摘されました。実際、コンテンツの長さは、静的または非静的コンテンツのいずれかでサーバーによって設定されていないようですが、無効になっていますサーバー上で存続することで、ロード時間が2倍になります。
一部のサイトでは、ブラウザでの存続を無効にすることを提案していますが、ページを表示するすべての人にそのことをお勧めするのは気が進まないです。私はおそらく間違った木を吠えていますか?
ブラウザはLucidLynxのfirefox3.6.8です。サーバーはApache2.2.11です。
apache.confが追加されています...ページをロードしようとする無駄な試みでKeepAliveタイムアウトを3に減らしましたが、それは箱から出てきたものだと思います。
私は間違った木を吠えていますか?
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 3
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/