This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
subject: Jersey api - How remove Cache-Control header in response from server
 
Similar Threads
How to remove browser cache after updating Jsp page on server
Question on caching of page
Cacheing problem in JSP's
how to remove history from jsp pages
Set Reponse Headers Problem