Solved

Preventing to get the files from cache

Posted on 2000-05-12
1
160 Views
Last Modified: 2010-04-01
Hi,
I've a servlet (in one server) and a jsp file in another server.The servlet invokes/calls the jsp file.
First time,its loading from the server.But,from second time,its getting from cache.I tried using
<%  
response.setHeader("Pragma", "No-cache");
  response.setHeader("Cache-Control", "no-cache");
 response.setDateHeader("Expires",0);
%>
and also <Meta> tag  (settings).No effect.Any ideas/suggestions will be greatly helpful for me.It should goto the server everytime to invoke the jsp file not from the cache.Thanks in advance.I'm mailing in this forum,as I just wanted to know whether we can soleve this problem in javascript.
0
Comment
Question by:tmmet
1 Comment
 
LVL 7

Accepted Solution

by:
Ravindra76 earned 50 total points
Comment Utility
You have forgetten this tag:-

res.setHeader( "Cache-Control","no-store" );

:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

762 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

6 Experts available now in Live!

Get 1:1 Help Now