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

Reply via email to