gzip圧縮送信
xml-rss2.php
// compare Etag to what we got if ($eTag == serverVar(<span style="color: #000099">'HTTP_IF_NONE_MATCH'</span>)) { header(<span style="color: #000099">"HTTP/1.0 304 Not Modified"</span>); header(<span style="color: #000099">'Content-Length: 0'</span>); } else { $feed = mb_convert_encoding($feed, <span style="color: #000099">"UTF-8"</span>, <span style="color: #000099">"EUC-JP"</span>); header(<span style="color: #000099">"Content-Type: application/xml"</span>); ob_start ( <span style="color: #000099">"ob_gzhandler"</span> ); // dump feed echo $feed; }
header(“Content-Type: application/xml”);
のすぐ下の行に下記を追加
ob_start ( “ob_gzhandler” );
RSSの表示は速くなった
そんな感じ
This entry was posted in "NucleusCMS" and tagged "gzip圧縮送信", "Nucleus3.41" and "RSSの表示" by Dalzy. Bookmark the permalink.