Jump to content

preloading an image ready for displaying at later time


freelance84

Recommended Posts

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
_END;
if(!empty($save_success))
{
	if($save_success == 'yes')
		{
echo <<<_END
<META HTTP-EQUIV=Refresh CONTENT="2; URL=http://www.mysite.net/mct-s.php?name=$name[0]&number=$s1[9]&order=$s_order&s_ID=$s_ID">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
_END;
		}
}

 

 

The above code changes the header depending on the value of a variable. It works fine.

 

However the NO-CACHE section: Will this prevent any images loaded on the page going into the browsers history? Therefore meaning that any unique images on this page will have to be loaded a fresh each time?

 

If so, is it possible to tell a different page to download the said image into the browsers history but without displaying it? Maybe load it into a hidden div or something?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.