Phil Ringnalda <phil@philringnalda.com> wrote:
The first thing I'd do would be to add two lines: at the very start,
ob_start(); and at the very end, require('cgi_buffer.php'); - mnot's CGI
Buffer [1] buys you immediate E-Tag support, so even though you'll still
have to get the HTML and parse it, at least you can return a 304 instead of
the whole RSS file when nothing's changed
Interesting. Thanks for that.
, and if you have PHP compiled --with-zlib you'll also get gzip encoding for those aggregators that support it. Or, if your server has mod_gzip, add
The new server has zlib enabled in php and zlib.output_compression on. I wonder how many RSS readers actually support this and etags. Presumably anything based on curl will do it automatically. Probably anything based on dotnet as well.
-- Julian Bond Email&MSM: julian.bond@voidstar.com Webmaster: http://www.ecademy.com/ Personal WebLog: http://www.voidstar.com/ M: +44 (0)77 5907 2173 T: +44 (0)192 0412 433