cache issue in websphere

Posted on 2005-05-13
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


    <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">
Question by:ramsharma23
    1 Comment
    LVL 9

    Accepted Solution

    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 -->
        <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">


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Due to recent concerns over the inevitable depletion of the current pool of IPv4 addresses and the desire to provide additional functionality for modern devices, an upgrade to IPv6 on my Internet connection was needed for me to explore the world of …
    After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now