On Thu, Dec 19, 2002 at 08:54:08AM +0200, Tuomas Lukinmaa wrote:
> Gianni Johansson wrote:
> 
> >- it doesn't set caching headers like fproxy yet.
> 
> Not to be picky, but fproxy does not support proper caching of documents 
> on browser side. All fproxy does is prevent caching of already 
> *non-cached* redirects (atleast according to HTTP/1.1 specification). If 
> you wish, you can read up on other issues in the HTTP/1.1 thread 
> presented here while back.
Actually, it does now. Have you tried lately?

Firstly, the don't-cache-redirects code, and the infolets:

$ telnet 127.0.0.1 8888
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.0

HTTP/1.1 302 Moved Temporarily
Date: Thu, 19 Dec 2002 11:42:39 GMT
Pragma: no-cache
Location: /servlet/nodeinfo/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: post-check=0, pre-check=0
Connection: close
Content-length: 191
Content-type: text/html;charset=ISO-8859-1
Server: Fred 0.5 (build 539) HTTP Servlets

Secondly, the actual infolets:

$ telnet 127.0.0.1 8888
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /servlet/nodeinfo/ HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 19 Dec 2002 11:43:36 GMT
Connection: close
Content-type: text/html;charset=ISO-8859-1
Server: Fred 0.5 (build 539) HTTP Servlets

- OK, we don't set enough caching headers on the infolets. Go implement
  it if you care, otherwise it's in the queue.

$ telnet 127.0.0.1 8888
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /SSK%40rBjVda8pC-Kq04jUurIAb8IzAGcPAgM/FF// HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 19 Dec 2002 11:46:21 GMT
Expires: Fri, 20 Dec 2002 00:00:00 GMT
Last-Modified: Thu, 19 Dec 2002 00:00:00 GMT
Connection: close
Content-length: 13246
Content-type: text/html;charset=ISO-8859-1
Server: Fred 0.5 (build 539) HTTP Servlets

- DBR sites get pretty good headers IMHO. Although if you have any
  ideas...

$ telnet 127.0.0.1 8888
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /CHK at 9xI9DjsCqgxlUu4gpLlPiprruXANAwI,j1aO~VFZu79eoeysaiaVPQ HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 19 Dec 2002 11:48:42 GMT
Expires: Sun, 16 Dec 2012 08:09:22 GMT
Last-Modified: Thu, 19 Dec 2002 08:09:22 GMT
Connection: close
Content-length: 4616
Content-type: text/html;charset=ISO-8859-1
Server: Fred 0.5 (build 539) HTTP Servlets

- CHKs also get pretty good headers. Again, any suggestions appreciated.

I have asked for HTTP/1.0 each time just to shorten the requests - I
don't think it changes the returned headers.

-- 
Matthew Toseland
toad at amphibian.dyndns.org
amphibian at users.sourceforge.net
Freenet/Coldstore open source hacker.
Employed full time by Freenet Project Inc. from 11/9/02 to 11/1/03
http://freenetproject.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20021219/2ca1e734/attachment.pgp>

Reply via email to