Tomcat does not cache output of a servlet. By definition the output of a
servlet is dynamic and as such has no reason to be cached. The image is
probably cached somewhere else...
John Mok a écrit :
Hi,
I am using Tomcat 5.5.17 with Sun JDK 5.0 Update 7 on CentOS 4.3. I
have a servlet, namely
left out setDateHeader
response.setDateHeader(Expires, 1);
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache);
Not much to recommend until we see the code which does the conversion (assuming
JPG to PNG)
Anyone else ?
Martin --
Hey John,
Tomcat does not do any caching. Try adding these HTTP headers:
response.addHeader(Pragma,no-cache); // HTTP/1.0
response.addHeader(Cache-control,no-cache, no-store); // HTTP/1.1
That's the official way. However, due to an IE4-IE6 bug, you might want to
replace the second one by:
Hi
If all else fails, try to add a timestamp variable to the link. By
dynamically adding a unique timestamp like
http://foo.com/document.jsp?time=[timestamp] the page will not be
cached.
Regards
Roland Rabben
-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: 1.
Alan,
Did you ever resolve this? I don't have enough
information here to help you.
Thanks,
John Najarian
--- Alan Chandler [EMAIL PROTECTED] wrote:
On Saturday 23 September 2006 15:23, David Smith
wrote:
Correction: context.xml belongs in META-INF of the
war archive.
I have just
On Sunday 01 October 2006 17:27, John Najarian wrote:
Alan,
Did you ever resolve this? I don't have enough
information here to help you.
...
Sort of ...
The WTP plugin for eclipse copies what is in META-INF/context.xml and writes
it into CATALINA_BASE/conf/server.xml.
So for tomcat5.0,
Alan-
context.xml identified Naming and Session management items
more info available at
http://tomcat.apache.org/tomcat-5.0-doc/deployer-howto.html
HTH
Martin --
*
This email message and any files transmitted with it contain
I have followed the instructions at
http://reynir.net/java/greinar/nr/52/ath but have managed to not get it
right. My ISAPI Filter does not show any arrow in the status column,
red or green. The Priority is * Unknown * and the Enable button is
grayed.
Are there any special instructions for
It happens when I attempt to acess the Apache Tomcat page http://localhost:8080.
The browser is IE 6.0, running under Windows XP.
I checked Control Panel - Administrative Tools - Services, and lists ApaAche
Tomcat as neither Started nor Stopped. After I manually start it and try
accessing the
I have an application that links users so they can chat. My client
operates within a browser. To be firewall friendly and avoid client
server sockets listening for incoming requests, I implemented the client
so that it makes http requests and sits and waits (maybe for minutes on
end) until it
10 matches
Mail list logo