?
Solved

Preventing to get the files from cache

Posted on 2000-05-12
1
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
Ravindra76 earned 150 total points
ID: 2805763
You have forgetten this tag:-

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

:)
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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