aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Jersey api - How remove Cache-Control header in response from server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Jersey api - How remove Cache-Control header in response from server" Watch "Jersey api - How remove Cache-Control header in response from server" New topic
Author

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

jana puff
Greenhorn

Joined: Nov 19, 2012
Posts: 1
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();
cc.setNoCache(false);

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jersey api - How remove Cache-Control header in response from server