Hi all, Also, note that the Last-Modified header is already supported by the Restlet API via the Representation#modificationDate property.
For details on mapping between HTTP headers and Restlet API see: http://wiki.restlet.org/docs_1.1/g1/43-restlet/130-restlet.html We are planning to support more caching headers in Restlet 1.2, see RFE: "Support caching HTTP headers" http://restlet.tigris.org/issues/show_bug.cgi?id=213 Best regards, Jerome -----Message d'origine----- De : Davide Angelocola [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 juin 2008 14:00 À : [email protected] Objet : Re: Add http header for static files Hi, On Monday 30 June 2008 12:30:25 Thierry Boileau wrote: > you can create a class that inherits from Directory and override the > handle(Request, Response) method. If the response is successfull > (response.getStatus().isSuccess()), then you can set the cache-control > header just as Stephan said. It could be also useful defining a strategy: during development I generally turn off caching; during production I turn on caching with various customizations. It would be nice to support these strategies directly in the restlet API. -- Best Regards, -- Davide Angelocola

