Re: Caching dynamically generated documents

> Luigi Rizzo writes:
> > ... 
> > It is also a problem for caches, which must either give up or
> > develop complex and memory consuming techniques essentially to
> > try to reconstruct the behaviour of the server from its responses.
> > This is both for GET (where no side effects can be assumed, but
> > requests with different parameters possibly yield different results),
> > and POST methods.
> The request URI is a good cache key. The problem is:

maybe I was not clear. Recalling the "sine server" example, certainly I
can cache GET requests as
	"http://www.sine.com/sine?angle=0.01",
	"http://www.sine.com/sine?angle=0.02",
	"http://www.sine.com/sine?angle=0.03",
	...
	"http://www.sine.com/sine?angle=3.14",

but that is extremely inefficient (from the memory point of view).
Arguments to the "sine" functions are real numbers (32-64 bit), and
although the replies are small I certainly wouldn't want to store many
of them on my cache. And storing just a few of them may be completely
pointless.

	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522              http://www.iet.unipi.it/~luigi/
====================================================================

Received on Friday, 5 January 1996 20:09:53 UTC