![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| // PREVENT CACHING FIRST BEFORE ANYTHING ELSE! header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 I am using the following commands to force the PHP script to not cache; however, it still does cache. Browser settings were checked and corrected; yet it still caches. Suggestions? Phil | |||
| | #2 | ||
| "Phil Powell" <soazine@erols.com> wrote in message news:<laGWa.3597$cf.2209@lakeread04>... > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > header("Cache-Control: no-store, no-cache, must-revalidate"); > header("Cache-Control: post-check=0, pre-check=0", false); > header("Pragma: no-cache"); > > I am using the following commands to force the PHP script to not cache; > however, it still does cache. Browser settings were checked and corrected; > yet it still caches. Check if the script outputs anything (including whitespace) before those header() calls. In particular, verify that the first five characters in your script file are '<?php'. If this is not the case, header() calls will be ignored. Cheers, NC | |||
| Featured Websites | ||||
|
![]() |
| Tags: cache, help, pages, php, them |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to clear cache in PHP | harishb | PHP | 0 | 07-01-2007 3:50 PM |
| Cache | Matt | Central Processing Unit (CPU) and Overclocking | 3 | 06-18-2007 2:59 AM |
| Page in Google cache | Stefano | Affiliate Programs | 0 | 06-12-2007 8:17 PM |
| cvs: pear /Cache Container.php | Helgi Þormar Þorbjörnsson | Pear | 0 | 05-27-2007 7:47 PM |
| google cache | d6rth7ader | Google questions | 2 | 07-31-2006 12:43 PM |
| Featured Websites | ||||
|