[Seaside] [Borges] Squeak Chess
Cees de Groot
seaside@lists.squeakfoundation.org
7 Oct 2002 21:42:55 +0200
Avi Bryant <avi@beta4.com> said:
>> callback := [ WASession currentSession respondWithDocument:
>> aForm asWebImage ].
>
>Hmm. I should probably improve that interface anyway, it's silly to
>hardcode it to either GIF or JPG. But really, these images should be
>served statically, so the browser can cache them. Borges doesn't have an
>interface for that at all, ideas?
>
Implement #asCacheableWebImage, and let it spit out a default cache policy of
24h; implement #asCacheableWebImageFor: so the sender can specify a number of
seconds the image is valid. The rest is a matter of reading the RFC's and
writing the correct 'Expires:' etcetera HTTP headers...
--
Cees de Groot http://www.cdegroot.com <cg@cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B
Cogito ergo evigilo