• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jersey api - How remove Cache-Control header in response from server

jana puff
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to send a header without the Cache-Control attribute. Because Internet Explorer won't download my file with Cache-Control: no-cache, I wanted to remove that attribute but it seems nothing I set will remove it.

I've tried the following

CacheControl cc = new CacheControl();

return javax.wes.rs.core.Response.ok().cacheControl(cc).entity(myentity).build();

This is the link that indicates I don't want to send no-cache attribute. I don't want to send caching either so I was hoping to just remove the attribute period. http://support.microsoft.com/kb/812935

I use firebug to view the header sent from the server and each time it shows the Cache-Control: no-cache attribute no matter what settings I use in jersey.

I am using Jersey 1.5.

Thanks in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!