リクエストヘッダ & レスポンスヘッダ を見たい
Catalyst で作った CGI がリロードすると画像などの static なファイルを読み込まない問題つづき。
理由がぜんぜん分からないので、とりあえず HTTP のリクエストヘッダとレスポンスヘッダを見てみることに。
こーゆーのって、きっと Firefox のアドオンであるんだろうなー
と思って探してみると
なる記事を発見。早速インストール。
そして、実際にリクエストヘッダ&レスポンスヘッダを見てみると。。。
成功した場合
http://localserver/~myaccount/cgi-bin/Album/album_cgi.cgi/static/css/style.css GET /~myaccount/cgi-bin/Album/album_cgi.cgi/static/css/style.css HTTP/1.1 Host: localserver User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: text/css,*/*;q=0.1 Accept-Language: ja,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localserver/~myaccount/cgi-bin/Album/album_cgi.cgi Cache-Control: max-age=0 HTTP/1.x 200 Date: Fri, 01 Feb 2008 07:33:40 GMT Server: Apache/2.0.53 (Fedora) X-Catalyst: 5.7012 Content-Length: 2816 Last-Modified: Sat, 26 Jan 2008 04:53:33 GMT Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/css
失敗した場合
http://localserver/~myaccount/cgi-bin/Album/album_cgi.cgi/static/css/style.css GET /~myaccount/cgi-bin/Album/album_cgi.cgi/static/css/style.css HTTP/1.1 Host: localserver User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: text/css,*/*;q=0.1 Accept-Language: ja,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localserver/~myaccount/cgi-bin/Album/album_cgi.cgi If-Modified-Since: Sat, 26 Jan 2008 04:53:33 GMT Cache-Control: max-age=0 HTTP/1.x 200 Date: Fri, 01 Feb 2008 07:30:45 GMT Server: Apache/2.0.53 (Fedora) Connection: Keep-Alive Keep-Alive: timeout=15, max=99
お?お?お?
なんか解決しそうな予感!?