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. 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.
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 >
