Right now my page looks like this and it's still caching ?????

<head>
        <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
        <meta HTTP-EQUIV="cache-control" CONTENT="no-store">
        <% response.setDateHeader("Expires",0); %>
</head>



<html>
        <head>
                <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
                <meta HTTP-EQUIV="cache-control" CONTENT="no-store">
                <% response.setDateHeader("Expires",0); %>
                <title>Employee List</title>
        </head>
<body>
        Employee List
        <jsp:include page="/servlet/EmployeeList" flush="true" />
</body>
<head>
        <meta HTTP-EQUIV="pragma" CONTENT="no-cache">
        <meta HTTP-EQUIV="cache-control" CONTENT="no-store">
        <% response.setDateHeader("Expires",0); %>
</head>
</html>

-----Original Message-----
From: NESTORS Andris (AC-Creation) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 6:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: FW: Tomcat, JSP and Cache


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:[EMAIL PROTECTED]]
# Sent: Tuesday, December 05, 2000 6:36 PM
# To: '[EMAIL PROTECTED]'
# Subject: RE: FW: Tomcat, JSP and Cache
# 
# 
# I tried that and it still happens.
# 
# -----Original Message-----
# From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
# Sent: Tuesday, December 05, 2000 12:13 PM
# To: [EMAIL PROTECTED]
# 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." <[EMAIL PROTECTED]>
# 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:[EMAIL PROTECTED]]
# > Sent: Monday, December 04, 2000 3:49 PM
# > To: Adress, David S.; '[EMAIL PROTECTED]'
# > Subject: Re: Tomcat, JSP and Cache
# > 
# > 
# > Adress, David S. <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
# >
# --------------------------------------------------------------
# --------------
# > 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/
# 

Reply via email to