Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP image caching problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi friends,

I read various articles of this forum, but i could not solve my problem, my problem is image caching in IE 7 browser.

I have big application which are using the JSP, servlet, weblogic 8.1 and apache server in Linux environment.

Now my problem is, for different login, there are different images, that comes dynamically; should be shown but the pages are showing same images. when i refresh the pages through mouse help then it works fine.

I used frameset to load all the subsequent pages .

I also uses following to solve the issues , but couldn't:

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");

couldn't solve the problem but when i delete all IE temporary file or refresh the pages it solves,


please help me ASAP, its really urgent.

keshab kc
software engineer (j2ee)
[ December 03, 2007: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
"keshab kc",
Please check your private messages.
 
keshab kc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Fren,

How can i check the private message?

for latest try, i use the following codes to jsp pages:

response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
response.setHeader("Cache-Control", "private"); // HTTP 1.1
response.setHeader("Cache-Control", "no-store"); // HTTP 1.1
response.setHeader("Cache-Control", "max-stale=0"); // HTTP 1.1

response.addHeader("Cache-Control","no-cache, must-revalidate");
response.addHeader("Cache-Control","post-check=0, pre-check=0");

still couldn't solve , please if you guys have any idea help me asap!!
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator

Originally posted by keshab kc:
How can i check the private message?


Perhaps you could try clicking on the link that says "My Private Messages"?
[ December 03, 2007: Message edited by: Bear Bibeault ]
 
keshab kc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi all, please help my problem above!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
"keshab kc ",
Welcome to JavaRanch!

We're pleased to have you here with us here on the ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Initials are fine for the first and middle name but we require a full last name. You can change it here
 
keshab kc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Report post to moderator
I hereby confirm that the above solution that i have mentioned works perfectly, earlier i was wrong.

But um..........think we have to implement these correctly correctly in correct place.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Report post to moderator
"keshab kc",

Please be aware that, after 3 warnings, accounts with invalid screen names are subject to being closed. This counts as number 4.
[ December 05, 2007: Message edited by: Ben Souther ]
 
Bear Bibeault
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
"keshab kc", your account has been disabled. Should you wish for it to be re-enabled, you must contact me by email.
[ December 06, 2007: Message edited by: Bear Bibeault ]
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic