Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 14th, 2007, 02:14 AM
Authorized User
 
Join Date: Oct 2006
Location: Karnavati, Gujarat, India.
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



Reply With Quote
  #2 (permalink)  
Old February 14th, 2007, 02:20 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
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
Reply With Quote
  #3 (permalink)  
Old March 1st, 2007, 03:06 AM
Authorized User
 
Join Date: Oct 2006
Location: Karnavati, Gujarat, India.
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.