Solved

Preventing to get the files from cache

Posted on 2000-05-12
1
165 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 50 total points
ID: 2805763
You have forgetten this tag:-

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

:)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
throw exception 21 66
Delete Android all or certain applications data programmatically 9 107
Java basic valueOf question 1 32
import as existing maven project 3 34
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

740 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