It seems that FProxy fills in the Expires and Last-Modified headers on
responses with localized dates which is incorrect according to HTTP/1.1
specs. (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1 )
Also, HTTP/1.1 requires that any compliant server includes Date header
with all responses (unless the server is clockless).
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18 )
Furthermore, if you look at the response to the GET below, you would
notice that FProxy is responding with wrong reply code. It should be
using 304 Not Modified if the content hasn't gone stale.
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.5 ,
http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.3 )
It would also be sensible to return ETag header to allow additional
validity check for stale/fresh content.
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.3 )
-tumu, the html/http bitch
+++GET 542+++
GET /servlet/images/aqua/aq_background.gif HTTP/1.1
Host: 127.0.0.1:8888
User-Agent: Lynx/2.8.3dev.8 libwww-FM/2.14FM
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
If-Modified-Since: ke, 30 loka 2002 12:15:12 GMT
Connection: keep-alive
+++RESP 542+++
HTTP/1.1 200 OK
Expires: to, 31 loka 2002 13:43:35 GMT
Last-Modified: ke, 30 loka 2002 12:15:12 GMT
Connection: close
Content-type: image/gif
Server: Fred 0.5 (build 527) HTTP Servlets
+++CLOSE 544+++
_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
- Re: [freenet-dev] FProxy breaks HTTP/1.1 specs Tuomas Lukinmaa
- Re: [freenet-dev] FProxy breaks HTTP/1.1 specs Robert Bihlmeyer
- Re: [freenet-dev] FProxy breaks HTTP/1.1 specs Tuomas Lukinmaa
- Re: [freenet-dev] FProxy breaks HTTP/1.1 specs harik
- Re: [freenet-dev] FProxy breaks HTTP/1.1 spe... Tuomas Lukinmaa
- Re: [freenet-dev] FProxy breaks HTTP/1.1... Matthew Toseland
- Re: [freenet-dev] FProxy breaks HTT... Tuomas Lukinmaa
- Re: [freenet-dev] FProxy breaks... Matthew Toseland
- Re: [freenet-dev] FProxy breaks HTTP/1.1... harik
- Re: [freenet-dev] FProxy breaks HTT... Tuomas Lukinmaa
- Re: [freenet-dev] FProxy breaks HTTP/1.1 spe... Ian Clarke
