Bei gleichem URL, FF sucht immer in lokal Cache

  • Text ist auf Englisch, aber Sie können auf Deutsch antworten.

    I am using FF 2.0.0.3 (Ubuntu) to contact my application running on Jetty 6.1.1 Server. After user input information and clicked a butten on web page, a servlet is called with info as parameter, quite a simple web application.

    Now I have a quite strange issue, if I put same content on the web form, so say if the URLs calling the servlet are same. The FF instead sending this HTTP request to server, only show me the cached response web page. I have to clean the FF cache or input some other content on the web page, it works again.

    So is it a problem of FF or I have to reconfigure the web server? here is the link calling the servlet, quite normal.

    http://127.0.0.1:8080/OCS-X/SendMess…od5=2&Send=send

    Following is the ethereal trace of the HTTP call

    No. Time Source Destination Protocol Info
    26 32.885845 127.0.0.1 127.0.0.1 HTTP GET /OCS-X/SendMessageServlet?lang=en&subject=11&body=1111&recipient1=sip%3Aalice%40open-ims.test&recipientmethod1=4&recipient2=&recipientmethod2=2&recipient3=&recipientmethod3=2&recipient4=&recipientmethod4=2&recipient5=&recipientmethod5=2&Send=send HTTP/1.1

    Frame 26 (832 bytes on wire, 832 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: 53257 (53257), Dst Port: webcache (8080), Seq: 1, Ack: 1, Len: 766
    Hypertext Transfer Protocol
    GET /OCS-X/SendMessageServlet?lang=en&subject=11&body=1111&recipient1=sip%3Aalice%40open-ims.test&recipientmethod1=4&recipient2=&recipientmethod2=2&recipient3=&recipientmethod3=2&recipient4=&recipientmethod4=2&recipient5=&recipientmethod5=
    Request Method: GET
    Request URI [truncated]: /OCS-X/SendMessageServlet?lang=en&subject=11&body=1111&recipient1=sip%3Aalice%40open-ims.test&recipientmethod1=4&recipient2=&recipientmethod2=2&recipient3=&recipientmethod3=2&recipient4=&recipientmethod4=2&recipien
    Request Version: HTTP/1.1
    Host: 127.0.0.1:8080\r\n
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy)\r\n
    Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n
    Accept-Language: en-us,en;q=0.8,de-de;q=0.7,zh-cn;q=0.5,zh-tw;q=0.3,zh-hk;q=0.2\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Connection: keep-alive\r\n
    Referer: http://127.0.0.1:8080/OCS-X/ocsx_send_english.html\r\n
    \r\n

    No. Time Source Destination Protocol Info
    31 32.915313 127.0.0.1 127.0.0.1 HTTP POST /OCS-X/services/SendMessage HTTP/1.0

    Frame 31 (1271 bytes on wire, 1271 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: 53258 (53258), Dst Port: webcache (8080), Seq: 1, Ack: 1, Len: 1205
    Hypertext Transfer Protocol
    POST /OCS-X/services/SendMessage HTTP/1.0\r\n
    Request Method: POST
    Request URI: /OCS-X/services/SendMessage
    Request Version: HTTP/1.0
    Content-Type: multipart/related; type="text/xml"; start="<34BCD8EC151A253F2B44F7EED5DFD0B1>"; \tboundary="----=_Part_8_7846644.1177527002045"\r\n
    Accept: application/soap+xml, application/dime, multipart/related, text/*\r\n
    User-Agent: Axis/1.3\r\n
    Host: localhost:8080\r\n
    Cache-Control: no-cache\r\n
    Pragma: no-cache\r\n
    SOAPAction: ""\r\n
    Content-Length: 1015
    \r\n
    MIME Multipart Media Encapsulation, Type: multipart/related, Boundary: "----=_Part_8_7846644.1177527002045"
    [Type: multipart/related]
    Preamble
    First boundary: ------=_Part_8_7846644.1177527002045\r\n
    Encapsulated multipart part
    Content-Type: text/xml; charset=UTF-8\r\n
    Content-Transfer-Encoding: binary\r\n
    Content-Id: <34BCD8EC151A253F2B44F7EED5DFD0B1>\r\n
    \r\n

    No. Time Source Destination Protocol Info
    33 32.916933 127.0.0.1 127.0.0.1 HTTP Continuation or non-HTTP traffic

    Frame 33 (221 bytes on wire, 221 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: 53258 (53258), Dst Port: webcache (8080), Seq: 1206, Ack: 1, Len: 155
    Hypertext Transfer Protocol
    \r\n
    Data (153 bytes)

    0000 2d 2d 2d 2d 2d 2d 3d 5f 50 61 72 74 5f 38 5f 37 ------=_Part_8_7
    0010 38 34 36 36 34 34 2e 31 31 37 37 35 32 37 30 30 846644.117752700
    0020 32 30 34 35 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 2045..Content-Ty
    0030 70 65 3a 20 74 65 78 74 2f 70 6c 61 69 6e 0d 0a pe: text/plain..
    0040 43 6f 6e 74 65 6e 74 2d 54 72 61 6e 73 66 65 72 Content-Transfer
    0050 2d 45 6e 63 6f 64 69 6e 67 3a 20 62 69 6e 61 72 -Encoding: binar
    0060 79 0d 0a 43 6f 6e 74 65 6e 74 2d 49 64 3a 20 3c y..Content-Id: <0070>....1111

    No. Time Source Destination Protocol Info
    35 32.917324 127.0.0.1 127.0.0.1 HTTP Continuation or non-HTTP traffic

    Frame 35 (108 bytes on wire, 108 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: 53258 (53258), Dst Port: webcache (8080), Seq: 1361, Ack: 1, Len: 42
    Hypertext Transfer Protocol
    \r\n
    Data (40 bytes)

    0000 2d 2d 2d 2d 2d 2d 3d 5f 50 61 72 74 5f 38 5f 37 ------=_Part_8_7
    0010 38 34 36 36 34 34 2e 31 31 37 37 35 32 37 30 30 846644.117752700
    0020 32 30 34 35 2d 2d 0d 0a 2045--..

    No. Time Source Destination Protocol Info
    40 32.948219 127.0.0.1 127.0.0.1 HTTP/XML HTTP/1.1 200 OK

    Frame 40 (680 bytes on wire, 680 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: webcache (8080), Dst Port: 53258 (53258), Seq: 1, Ack: 1403, Len: 614
    Hypertext Transfer Protocol
    HTTP/1.1 200 OK\r\n
    Request Version: HTTP/1.1
    Response Code: 200
    Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n
    Set-Cookie: JSESSIONID=13qd6ckfxqfpr;path=/OCS-X\r\n
    Content-Type: text/xml; charset=utf-8\r\n
    Server: Jetty(6.1.1)\r\n
    \r\n
    eXtensible Markup Language
    <?xml
    <soapenv>
    <soapenv>
    <sendMessageResponse>
    <result>
    f405ba490d6356c0422eb172ed55616f@127.0.0.1
    </result>
    </sendMessageResponse>
    </soapenv>
    </soapenv>

    No. Time Source Destination Protocol Info
    47 32.966076 127.0.0.1 127.0.0.1 HTTP HTTP/1.1 200 OK

    Frame 47 (199 bytes on wire, 199 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: webcache (8080), Dst Port: 53257 (53257), Seq: 1, Ack: 767, Len: 133
    Hypertext Transfer Protocol
    HTTP/1.1 200 OK\r\n
    Request Version: HTTP/1.1
    Response Code: 200
    Content-Type: text/html\r\n
    Content-Length: 242
    Last-Modified: Tue, 17 Apr 2007 12:50:50 GMT\r\n
    Server: Jetty(6.1.1)\r\n
    \r\n

    No. Time Source Destination Protocol Info
    49 32.966321 127.0.0.1 127.0.0.1 HTTP Continuation or non-HTTP traffic

    Frame 49 (308 bytes on wire, 308 bytes captured)
    Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00)
    Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
    Transmission Control Protocol, Src Port: webcache (8080), Dst Port: 53257 (53257), Seq: 134, Ack: 767, Len: 242
    Hypertext Transfer Protocol
    Data (242 bytes)

    0000 3c 68 74 6d 6c 3e 0d 0a 3c 62 6f 64 79 3e 0d 0a <html>..<body>..
    0010 3c 64 69 76 20 76 61 6c 69 67 6e 3d 22 63 65 6e <div>..<table>..<t>..<td>..All mes
    0070 73 61 67 65 73 20 73 65 6e 74 20 3c 62 72 3e 0d sages sent
    .
    0080 0a 50 72 65 73 73 20 3c 61 20 68 72 65 66 3d 22 .Press here
    00a0 3c 2f 61 3e 20 74 6f 20 72 65 74 75 72 6e 20 74 to return t
    00b0 6f 20 74 68 65 20 6d 65 6e 75 0d 0a 3c 2f 74 64 o the menu..</td>..</tr>..</tabl>..</div>....</00e0>..</html>..
    00f0 0d 0a ..

  • Moin, Moin und herzlich willkommen im Ffx Forum.

    Gib in die Adresszeile about:config ein. Unter browser. cache. check_doc_frequency kannst Du bestimmen, wie oft auf einer Webseite geprüft werden soll, ob es eine neuere Version als die im Cache gibt.
    0: Einmal pro Browser-Session
    1: Jedes mal
    2: Nie, die Version im Cache wird immer benutzt.
    3 (Standard): Wenn die Webseite veraltet ist. (Dies hat diese beim gecachten Besuch mit angegeben)

    " Jeder ist klug: Der Eine vorher, der Andere nachher"
    Herzliche Grüße von "ostsee" von der Ostseeküste 8)

    ----------------------------------------------------