Changeset 347 for trunk/b2rdf.php
- Timestamp:
- 08/26/2003 05:07:36 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/b2rdf.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2rdf.php
r302 r347 3 3 $doing_rss=1; 4 4 header('Content-type: text/xml'); 5 6 // Handle Conditional GET 7 8 // Get the time of the most recent article 9 $sql = "SELECT max(post_date) FROM $tableposts"; 10 11 $maxdate = $wbdp->get_var($sql); 12 13 $unixtime = strtotime($maxdate); 14 15 // format timestamp for Last-Modified header 16 $last = gmdate("D, d M Y H:i:s \G\M\T",$unixtime); 17 18 // send it in a Last-Modified header 19 header("Last-Modified: $last"); 20 21 // compare it to aggregator's If_Modified_Since 22 // if they match, send a 304 and die 23 if ($_SERVER[HTTP_IF_MODIFIED_SINCE] == $last){ 24 header("HTTP/1.1 304 Not Modified"); 25 exit; 26 } 27 28 5 29 include('blog.header.php'); 6 30 add_filter('the_content', 'trim');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)