Hi Rob,

Thanks for your remarks!

I tried to add an attribute "Cache-Control" with value "no-cache" both on the 
server response and the client request:

// Server

Restlet situation = new Restlet() {
 @Override
 public void handle(Request request, Response response) {
  ...
  response.setEntity(kml,MediaType.TEXT_XML);
  Map<String,Object> map = new HashMap<String,Object>();
  map.put("Cache-Control", "no-store");
  response.setAttributes(map); 
 }
};


// Client
...
request.setAttributes(map);

But nothing changed!

Please note that I only encountered this problem when running the GWT client 
from hosted mode. When I browse the same URI through the Firefox navbar, I have 
no caching problem, and the appropriate document version is displayed.

By the way, what do you mean by "caching is not good in 1.1"? I am actually 
using this version of restlet and would like to avoid changing version right 
now :)

Martin

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1356144

Reply via email to