tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NESTORS Andris (AC-Creation)" <ANest...@fssc.co.uk>
Subject RE: FW: Tomcat, JSP and Cache
Date Wed, 06 Dec 2000 11:24:09 GMT
Try this. (Its also explained in the archives, I'm sure)

<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-store">    <!-- HTTP 1.1 -->
<% response.setDateHeader ("Expires", 0); %>            <!-- disable caching
at proxy server -->
</head>

You need to put it at the top of the page, as you would expect, and ALSO at
the the bottom of the page, to get around a bug in some browsers e.g. MS
Internet Explorer.

e.g. at the bottom put it right after the body section

[ page stuff here ]
</body>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-store">    <!-- HTTP 1.1 -->
<% response.setDateHeader ("Expires", 0); %>            <!-- disable caching
at proxy server -->
</head>



# -----Original Message-----
# From: Adress, David S. [mailto:David.S.Adress@pfizer.com]
# Sent: Tuesday, December 05, 2000 6:36 PM
# To: 'tomcat-user@jakarta.apache.org'
# Subject: RE: FW: Tomcat, JSP and Cache
# 
# 
# I tried that and it still happens.
# 
# -----Original Message-----
# From: javabettin@yahoo.com [mailto:javabettin@yahoo.com]
# Sent: Tuesday, December 05, 2000 12:13 PM
# To: tomcat-user@jakarta.apache.org
# Subject: Re: FW: Tomcat, JSP and Cache
# 
# 
# Create the headers through jsp as follows:
# 
# response.setHeader("Cache-Control","no-cache");
# response.setHeader("Pragma","no-cache");
# 
# Dave
# 
# --- "Adress, David S." <David.S.Adress@pfizer.com>
# wrote:
# > I was wondering if anyone can help. I have tomcat
# > server 3.1 running a
# > servlet and jsp page.
# > I have a servlet calling a jsp page with the
# > redirect method. I've put the
# > required meta tags on the jsp page  so the page
# > should not cache. However,
# > the page is still caching. In order for my page to
# > display the proper
# > results I need to have my browser reload. Are there
# > any setups that need to
# > be done to Tomcat or do I need to have a web server
# > running also????
# >  
# > Thanks
# > 
# > -----Original Message-----
# > From: Pier P. Fumagalli
# > [mailto:pier@betaversion.org]
# > Sent: Monday, December 04, 2000 3:49 PM
# > To: Adress, David S.; 'webmaster@jakarta.apache.org'
# > Subject: Re: Tomcat, JSP and Cache
# > 
# > 
# > Adress, David S. <David.S.Adress@pfizer.com> wrote:
# > > 
# > > I was wondering if you can help.
# > 
# > Nope, I'm sorry... You'd better contact the Tomcat
# > USERS mailing list. Check
# > out <http://jakarta.apache.org/mail.html>
# > 
# >     Pier
# > 
# > > I have tomcat server running a jsp page.
# > > I've put the required meta tags so the page should
# > not cache. However, the
# > > page is still caching. In order for my page to
# > display the proper results
# > I
# > > need to have my browser reload. Are there any
# > setups that need to be done
# > to
# > > Tomcat ???
# > > 
# > > Thanks
# > > 
# > -- 
# > Pier P. Fumagalli  Apache Software Foundation 
# > <mailto:pier@betaversion.org>
# >
# --------------------------------------------------------------
# --------------
# > Neque porro quisquam est qui dolorem ipsum quia
# > dolor sit amet, consectetur,
# > adipisci velit...                            
# > (Cicero: "De Finibus" 1.10.32)
# > 
# 
# 
# __________________________________________________
# Do You Yahoo!?
# Yahoo! Shopping - Thousands of Stores. Millions of Products.
# http://shopping.yahoo.com/
# 

Mime
View raw message