This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes tomcat cache problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat cache problem" Watch "tomcat cache problem" New topic

tomcat cache problem

gionnyDeep gionnyDeep

Joined: Jan 28, 2005
Posts: 1
Hi all
I geerate in a Struts Action servlet a file that I want to open directly in a new browser.
I give tomcat the right url and the file is properly generated.
But tomcat does not see it.
After shoutdown and restart Tomcat start to see the file.That's for sure not what I want.
Actually I've done this kind of code in my action servlet
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

Nothing change!

I agree. Here's the link:
subject: tomcat cache problem
Similar Threads
Embed TIFF image in response
Cannot open PDF directly, save works
problem in Servlets and JSP's
Disabling IE Back Button
AJAX requests on page reload