window.open and cache

They have: 218 posts

Joined: Apr 2001

A window.open command is not working after I revisit a page that is stored in the hard drive cache. The same problem happens on Mozilla and Internet Explorer. If I clear the cache and refresh the page, the window opens. Or if I re-ftp the page with the javascript code, the window opens.

The code is a standard window.open method.

Any workarounds to this problem?

Cheers,

TM
electricmountain.com

They have: 218 posts

Joined: Apr 2001

For now, I'm going to switch the page that opens from an .html to .php file with a no-cache header and see if that works.

They have: 461 posts

Joined: Jul 2003

try checking the mozilla and ie settings...even though ie often disregaurds it''s settsings. make sure it's set to be checking EVERY time. if you do that in mozilla the cahces are ignored and it always checks

ie will ignore it when it wants to

POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.

They have: 218 posts

Joined: Apr 2001

The pop-up is for client admin controls so it has to open consistently regardless of their cache settings.

Cheers,

TM

druagord's picture

He has: 335 posts

Joined: May 2003

try this meta tag

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
'
this should give the same result as the php header you are using

IF , ELSE , WHILE isn't that what life is all about

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,
if druagord's meta doesn't work, try these 2 (together):

<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
'

Vinny

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.