Link to home
Start Free TrialLog in
Avatar of bhomass
bhomass

asked on

use javascript to enter ctrl-shift refresh for inframe page

I am having the nasty IE unwanted caching of javascript, and had to use ctrl-shift refresh to refresh some js on a page.

worse yet, it is an iframe page, so I had to use refresh in the context menu,

anyone know of a way to do this with javascript instead?
ASKER CERTIFIED SOLUTION
Avatar of Xemorph
Xemorph
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kin Fat SZE
you can try add
<meta http-equiv="Pragma" content="no-cache">
between <head></head> tag
Avatar of bhomass
bhomass

ASKER

I already tried the whole set of header settings

            resp.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
            resp.setHeader("Pragma","no-cache"); //HTTP 1.0
            resp.setDateHeader("Expires", 0); //prevents caching at the proxy server

none worked. not a surprise. this non-response has been reported by others.

if no other shows up, it will have to be the uniquer url approach with random number on the tail.
Did the random string help you?