Prevent (IE) browser cache of image

View: New views
2 Messages — Rating Filter:   Alert me  

Prevent (IE) browser cache of image

by Aaron Fischer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I have a little app that is a pseudo-day-planner.  Users can enter  
appointments via a form and then I use PHP and GD to write the  
appointment blocks onto a calendar image.

It works great in Safari on Mac and Firefox on PC.  However, it  
doesn't work with Internet Explorer on PC.  It appears that the issue  
is that IE is not loading a fresh version of the calendar image.

How can I force IE to load a fresh version of the image, either via  
PHP or HTML/HTTP code?

Thanks!

-Aaron

_______________________________________________
New York PHP SIG: Front End Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/front-end
http://www.nyphp.org

Re: Prevent (IE) browser cache of image

by Hanan-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try adding a random string at the end of image. Something like imagename.jpg?rstring=asdfas. This can be done with either javascript or php.

-Hanan

On 4/5/07, Aaron Fischer <agfische@...> wrote:
Hi there,

I have a little app that is a pseudo-day-planner.  Users can enter
appointments via a form and then I use PHP and GD to write the
appointment blocks onto a calendar image.

It works great in Safari on Mac and Firefox on PC.  However, it
doesn't work with Internet Explorer on PC.  It appears that the issue
is that IE is not loading a fresh version of the calendar image.

How can I force IE to load a fresh version of the image, either via
PHP or HTML/HTTP code?

Thanks!

-Aaron

_______________________________________________
New York PHP SIG: Front End Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/front-end
http://www.nyphp.org


_______________________________________________
New York PHP SIG: Front End Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/front-end
http://www.nyphp.org
LightInTheBox - Buy quality products at wholesale price!