On Thu, Oct 28, 2010 at 2:39 PM, Reto Bachmann-Gmuer <[email protected]> wrote: > Hi Tsuy > > Why do you think the headers hould only be added for IE? No Browser should > cache those responses. It can be done via means of jax-rs in the individual > root resource or typerenderer.
IE caches ajax request as default. Never saw/recongized this in Chrome/Firefox. I think most of the jax-rs resources and typerender don't want to cache the ajax requests - so default should be no cache. Makes no sense for me to update all jaxrs resources and typrender (there a lot of in our projects) Or maybe it should be the serializer to add > some reasonable (and configurable) defaults if this hasn't explicitely been > explicitely set by the Handler. What do you mean with serializer: MessageBodyWriter or somewhere in triaxrs? > > Cheers, > reto > > > On Thu, Oct 28, 2010 at 11:20 AM, Tsuyoshi Ito <[email protected]> wrote: > >> Hi Reto >> >> I have tested our apps in IE and found out that requests are cached. >> Especially ajax requests which returns JSON or RDF/JSON lead to >> problems because the pages are not rendered correcty. What is an easy >> way to set the request headers "Cache-Control":"no-cache" and >> "Expires":"0" for html, json and rdf/json for IE in apache clerezza. >> >> Or are there any better solution than changing header for requests with IE? >> >> Thanks >> >> Cheers >> TSuy >> >
