Re: After INSERT form submit - Data doesn't refresh!
| From: | Rahul S. Johari | Date: | Tue, 22 Jul 2008 14:24:56 +0000 |
| Subject: | Re: After INSERT form submit - Data doesn't refresh! | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277169@lists.php.net to get a copy of this message | ||
It works, but it's not the most efficient solution. The page has heavy graphics & text. Using the header("Location: a.php") loads the page in question twice. Slower connections will respond slowly to the page.
In theory, the header() statements for not using cache should have worked - I'm not sure why they are working. Even Googling the loading from cache problem gives those statements in various places.
On Jul 22, 2008, at 10:16 AM, Jason Pruim wrote:
Without seeing the code it's hard to tell.. But couldn't you just use a header("Location: a.php"); after the insert statement? Or is that too ugly of a hack? :) It works for me on a project I'm working on. On Jul 22, 2008, at 9:42 AM, Daniel Brown wrote:--- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email] sleepwalker@rahulsjohari.com [Web] http://www.rahulsjohari.comOn Tue, Jul 22, 2008 at 8:56 AM, Yeti <yeti@myhich.com> wrote:-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@raoset.com --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpok, in that case forget the Last-Modified or set it to the current date. header('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT');Expanding on this, keep in mind that some people may be as far ahead as GMT +1300. So if you want to use the Last-Modified HTTP/1.0 standard, you may want to try this: <?php header("Last-Modified: ".gmdate("D, d M Y H:i:s",strtotime("+3 days"))." GMT"); ?> As for turning off caching in his own browser, while it may fix the OP's problem on his machine, it by no means fixes the bug in general. Other users will still be faced with the same issue. --</Daniel P. Brown> Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php