This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Question on caching of page
Set Reponse Headers Problem
Cacheing problem in JSP's
how to remove history from jsp pages
How to remove browser cache after updating Jsp page on server