Re: Want to avoid 304 error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Of course. Here you are

- FIREFOX 2.0.0.5 (Headers captured with Live HTTP Headers)

- Headers first request (empty cache) and response:

   GET /javascript/prueba.js HTTP/1.1
   Host: 1.1.2.47
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
   Accept: */*
   Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300 Connection: keep-alive
   Referer: https://1.1.2.47pruebaAction.do?metodo=ver
   Cookie: JSESSIONID=E89CF2BB2C4701977149C6FA2157ADF0
   Proxy-Authorization: Basic c2VyYmVsOnNlcmJlbDQ1Ng==

   HTTP/1.x 200 OK
   Date: Mon, 23 Jul 2007 17:47:01 GMT
   Server: Apache/2.0.54 (Linux/SUSE)
   Etag: W/"16577-1184847173000"
   Last-Modified: Thu, 19 Jul 2007 12:12:53 GMT
   Content-Length: 16577
   Cache-Control: max-age=120
   Expires: Mon, 23 Jul 2007 17:49:01 GMT
   Keep-Alive: timeout=15, max=99
   Connection: Keep-Alive
   Content-Type: text/javascript


- Corresponding entry in cache after this request/response:

   Key: https://1.1.2.47/javascript/prueba.js
   Data size: 16577 bytes
   Fetch count: 1
   Last modified: 2007-07-23 19:47:00
   Expires: 2007-07-23 19:49:00


- Headers request/response after expiry time:

GET /javascript/prueba.js HTTP/1.1 Host: 1.1.2.47 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5
   Accept: */*
   Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 300
   Connection: keep-alive
   Referer: https://1.1.2.47/pruebaAction.do?metodo=ver
   Cookie: JSESSIONID=E89CF2BB2C4701977149C6FA2157ADF0
   If-Modified-Since: Thu, 19 Jul 2007 12:12:53 GMT
   If-None-Match: W/"16577-1184847173000"
   Proxy-Authorization: Basic c2VyYmVsOnNlcmJlbDQ1Ng==

   HTTP/1.x 304 Not Modified
   Date: Mon, 23 Jul 2007 17:49:31 GMT
   Server: Apache/2.0.54 (Linux/SUSE)
   Connection: Keep-Alive
   Keep-Alive: timeout=15, max=98


- Corresponding entry in cache after this request/response

   Key: https://1.1.2.47/javascript/prueba.js
   Data size: 16577 bytes
   Fetch count: 3
   Last modified: 2007-07-23 19:49:30
   Expires: 1970-01-01 01:00:00





- INTERNET EXPLORER 6.0.2800 (Headers captured with HTTP Analyzer Trial Version)

- Headers first request (empty cache) and response:

   (Request-Line)    GET /javascript/prueba.js HTTP/1.1
Accept */* Referer https://1.1.2.47/pruebaAction.do?metodo=ver
   Accept-Language    es,en-gb;q=0.7,en-us;q=0.3
   Accept-Encoding    gzip, deflate
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
   Host    1.1.2.47
   Connection    Keep-Alive
   Cookie    JSESSIONID=4E544B170E5C44AF97FC979362F8C457


   Response Headers    Value
(Status-Line) HTTP/1.0 200 OK Date Mon, 23 Jul 2007 17:54:24 GMT
   Server    Apache/2.0.54 (Linux/SUSE)
   ETag    W/"16577-1184847173000"
Last-Modified Thu, 19 Jul 2007 12:12:53 GMT Content-Length 16577
   Cache-Control    max-age=120
   Expires    Mon, 23 Jul 2007 17:56:24 GMT
   Connection    close
   Content-Type    text/javascript


- Headers request/response after expiry time:

   Request Headers    Value
   (Request-Line)    GET /javascript/prueba.js HTTP/1.1
   Accept    */*
   Referer    https://1.1.2.47/pruebaAction.do?metodo=ver
   Accept-Language    es,en-gb;q=0.7,en-us;q=0.3
   Accept-Encoding    gzip, deflate
   If-Modified-Since    Thu, 19 Jul 2007 12:12:53 GMT; length=16577
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
   Host    1.1.2.47
   Connection    Keep-Alive
   Cookie    JSESSIONID=4E544B170E5C44AF97FC979362F8C457


   Response Headers    Value
   (Status-Line)    HTTP/1.0 304 Not Modified
   Date    Mon, 23 Jul 2007 17:56:42 GMT
   Server    Apache/2.0.54 (Linux/SUSE)
   Connection    close


In the case of IE the cache entry remains the same (it only updates 'last access' and 'last check', but never 'expiry time' (sorry if these titles are not correct, I'm using an Spanish IE and I've transate them directly)
Thanks,

Sergio



Joshua Slive escribió:
On 7/23/07, Bello Martinez Sergio <serbel@xxxxxxxxxx> wrote:
Thanks again, Joshua.
You are right, it's my application that set 'must-revalidate' header.
But it's not the problem, I've deleted it and all works exactly the same.
I suspect the 304 return code is the reason because Firefox set
'1970-01-01 01:00:00 (already expired)" expiry date, and not that header.
I've found a "half-solution". If I use a 'Header append Cache-Control
"max-age=something"' , Apache inserts this header in response, even if
return code is 304 (until now I've used only 'ExpiresByType' to set
cache-related headers).
In this case, if Internet Explorer 6.0 receives max-age header, it
updates correctly cache-entry expiry time, but Firefox still updates it
to '1970-01-01 01:00:00 '. I'll search a litte more....

I'd like to see full request/response headers for these cases
(original and 304), because I can't really believe that MSIE and
firefox are broken enough to not properly update their cache on a 304
in the typical case.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux