?
Solved

cache issue in websphere

Posted on 2005-05-13
3
Medium Priority
?
2,497 Views
Last Modified: 2012-06-22
how to clear the cachememory in websphere and also in browserside currently im using script like

<%

// This is to prevent Caching on the browser and proxy

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1

response.setHeader("Pragma","no-cache"); //HTTP 1.0

response.setDateHeader ("Expires", -1); //prevents caching at the proxy server

%>

<head>
    <META HTTP-EQUIV="Content-Type"  CONTENT="text/html; charset=iso-8859-15" />
    <META HTTP-EQUIV="Expires"       CONTENT="-1">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Pragma"        CONTENT="no-cache">
>/head>
0
Comment
Question by:ramsharma23
1 Comment
 
LVL 9

Accepted Solution

by:
Dain_Anderson earned 2000 total points
ID: 13997423
I think you're on the right track, but perhaps try this:

<%
// Prevent caching of the output stream
response.setHeader("Cache-Control","no-cache, no-store, must-revalidate"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader ("Expires","Tue, 01 Jan 1985 00:00:01 GMT"); //prevents caching at the proxy server
%>

<!-- Prevent browser (client-side) caching -->
<head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15" />
    <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1985 00:00:01 GMT">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, no-store, must-revalidate">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>

-Dain
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question