Hi Dig, Complete caching support is not available in the API yet. It is planned for a future release, see: http://restlet.tigris.org/issues/show_bug.cgi?id=25
You are touching a sensitive point. I have relaxed the usage of the standard HTTP headers that are not yet supported in the API. You will still get a message in the logs (INFO level instead of WARNING), but it will work. Checked in SVN. Also, I have entered a new issue to keep track of all unsupported standard HTTP headers: http://restlet.tigris.org/issues/show_bug.cgi?id=282 Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Dig > Envoyé : mercredi 4 avril 2007 12:10 > À : [email protected] > Objet : HTTP Headers > > > Hi, > > I would like to set the following HTTP headers in the response: > > Cache-Control: no-cache > Pragma: no-cache > Expires: 0 > > I can't set this directly as Restlet prevents me from setting > standard HTTP > headers. I've read the FAQ and the documentation and I > understand that instead > of trying to set standard HTTP headers directly I should be > using the API, which > is fine. > > However, I can't seem to find any reference to the headers > above apart from the > constants in HttpConstants. > > What should I be doing? > > Many thanks in advance, > > Dig.

