Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2007, 02:14 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default Problem of Stored Page caching in IE

Dear Friends,


I have developed site which will gives effect on a image with the help of image_filter() of PHP 5.2. eg contract, grey scale, emboss etc...

Effect applied properly on image, but IE cannot referesh this page until I press F5 key. However this code works fine with FireFox, NetScape, Opera.

To overcome from this problem I had go to settings of IE & select on Every time I visit the Page radio button instead of Automatically under Check for newer version of stored page section.

But end user does not have this idea. So is there is any way to solve this with PHP, JS, HTML ?


Thanking you,


Dhaval Dave



 
Old February 14th, 2007, 02:20 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Dave!

You get to benefit from 3 weeks of hell I went through right before the end of the year to figure this out...

I have found that adding the following works when added to the head part of the HTML page.

header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); // disable IE caching
header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );

If you are doing AJAX calls, then there is a related problem with that as well. Let me know if you need that too. I have it, it'll just take a while to find.

Thanks

Mike

Mike
EchoVue.com
 
Old March 1st, 2007, 03:06 AM
Authorized User
 
Join Date: Oct 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to snowbydave1
Default

Dear Mac,

I had tried your code. Even I had applied all meta tag related to caching. But none of them are work perfectly on IE.

I have not idea about AJAX. Do you have any readymade script which will do this.

Thanking you,


Dhaval Dave






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to refresh the page without allowing caching malay mehta PHP FAQs 0 March 5th, 2007 01:22 AM
Problem of Stored Page caching in IE snowbydave1 Other Programming Languages 1 March 2nd, 2007 09:37 AM
best way to prevent page from caching crmpicco HTML Code Clinic 2 March 17th, 2006 09:02 AM
Page caching cridley ASP.NET 1.x and 2.0 Application Design 3 January 9th, 2006 07:58 PM
Preventing Page Caching neeter HTML Code Clinic 3 June 5th, 2003 01:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.