FreeBSD QandA 1295

FreeBSD QandA

Q. Netscape Communicator の 4.0xや 4.x 系で、[Reload] (再読み込み)
   ボタンや、強制再読み込みの [Shift] を押しながらの [Reload] ボタンを
   押しても、画面上のビットマップ画像をサーバから読み直さず、サーバ側の
   画像ファイルが更新していても、更新画像を見ることができません。

A. (1) Netscape Communicator 4.0 系の Bug で、4.06 では治っているようで
       す。4.06 やそれ以降を使いましょう。

   (2) Netscape Navigator 3.0x 系ならば、[Shift] を押しながら[Reload]
       (再読み込み)ボタンを押すこと実現できます。

   (3) Web Server に Apache を使っている場合

       次の通り、Apache configure で --enable-module=expiresをつけて
       mod_expires をつけて、 conf file に下記のような設定をすれば、
       ブラウザによらず reload できます。

       <Directory /usr/local/apache/share/htdocs/mrtg>
          ExpiresActive On
          ExpiresByType image/gif "access plus 1 second"
          ExpiresByType text/html "access plus 1 second"
          ExpiresDefault "access plus 1 second"
          #
          # index.html is not automatically generated
          <Files "index.html">
            ExpiresActive Off
          </Files>
       </Directory>

   (4) すかさず二個目の Communicator を起動します。すると、二個目に起動した
       Communicator は、「キャッシュが利用出来ずに起動する」と言う警告を
       表示しつつ起動します。これで見ると逐一更新してくれます。

       頻繁に更新したページをテストで見る時は、キャッシュを利用しない二個
       目の Communicator で見る事をお勧めします。

間違い・追加情報を見付けた場合は、 修正案の投稿のしかた を読んだ上で、
QandA@jp.FreeBSD.org まで お知らせください。