• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP bug in IE ?  RSS feed

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the iframe below:



The page calls the Iframe has the following code:



My problem, when I use Firefox and other browsers I have no cahe, when I click in the back button (button of the browser) the page expired.

On the other hand in IE the page back to iframe (about:blank) and when I click the second time the page has expired.

I would like first know whether would be a bug, after I would like to know whether in IE is possible the page expires on the first click ?

Thanks in advance !

I found this:

ie-iframe-caching-bug
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All those header "cache control" commands are considered hints. Some browsers pay attention to them, others ignore them. It is incorrect for your program to assume that they will work.

IE has a long history going back nearly 20 years of ignoring RFCs, W3C, and other standards. You can call them bugs if you want, but they are just how IE works. It is the programmer/form designer's responsibility to properly code around the weird actions of IE.
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Pat says, you can't rely on the headers to manager the cache correctly. I have found only one way to avoid caching problems and that's by passing a parameter with a random value. A quick google will find lots of examples. The random value makes the URL appear unique with every request so the resource will always be fetched from the server instead of the cache.
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved this problem with the following link:

http://support.microsoft.com/kb/222064



Thanks a lot !
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting back with your findings. I have given you a cow for helping others that may have this same problem.

(On the other hand: IE, what a crock of crap! When you have to create invalid HTML to get around problems in the browser, you know you've got a steaming pile...)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. Your example doesn't follow the instructions in the link exactly, which places the invalid extra head element after the body.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!