Solved

Preventing to get the files from cache

Posted on 2000-05-12
1
166 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java: The Public Class Main 4 65
Print Rhino Java Array in Javascript 1 57
Need help aligning JRadioButton that put in a box using GridBagLayout 2 42
Setup GlassFish 4 55
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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 will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

732 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