]> git.mjollnir.org Git - s9y.git/commitdiff
Add feedburner recognittion for "bad" caching.
authorgarvinhicking <garvinhicking>
Thu, 2 Nov 2006 11:20:35 +0000 (11:20 +0000)
committergarvinhicking <garvinhicking>
Thu, 2 Nov 2006 11:20:35 +0000 (11:20 +0000)
RFE #1588802

rss.php

diff --git a/rss.php b/rss.php
index cb48e4f6d863ac8b8effe7603ba0b2c4ac506838..476911115b3744531d492509e7099008e704166f 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -28,6 +28,11 @@ if (isset($_GET['viewAuthor'])) {
 if (!isset($_GET['type'])) {
     $_GET['type'] = 'content';
 }
+
+if (!empty($_SERVER['HTTP_USER_AGENT']) && stristr($_SERVER['HTTP_USER_AGENT'], 'feedburner')) {
+    $_GET['nocache'] = true;    
+}
+
 $serendipity['view'] = 'feed';
 
 switch ($_GET['type']) {