savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Savannah-hackers-public] Re: GNU Planet and Savannah


From: Sylvain Beucler
Subject: Re: [Savannah-hackers-public] Re: GNU Planet and Savannah
Date: Mon, 12 Jan 2009 21:23:16 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Jan 12, 2009 at 12:51:43PM +0000, Noah Slater wrote:
> On Mon, Jan 12, 2009 at 01:18:26PM +0100, Sylvain Beucler wrote:
> > That's a lead, but this still makes the same number of requests...
> 
> Sure, but only a HTTP header exchange. Nowhere near the same bandwidth.
> 
> > Maybe this is better done at the HTTP level but I'm in favour of a
> > less abusive way to poll the news.
> 
> I guess, HTTP caching was designed exactly for this type of thing though.
> 
> ... it also works pretty well!
> 
> > It's be interesting to know if planetplanet supports those headers,
> > though, just in case :)
> 
> It should do, if not, I would bet money that Planet Venus does:
> 
>   http://www.intertwingly.net/code/venus/

No need to guess when you can look at the source!
Check http://www.planetplanet.org/download/planet-2.0.tar.bz2
  planet-2.0/planet/feedparser.py:_open_resource

    If the etag argument is supplied, it will be used as the value of an
    If-None-Match request header.

    If the modified argument is supplied, it must be a tuple of 9 integers
    as returned by gmtime() in the standard Python time module. This MUST
    be in GMT (Greenwich Mean Time). The formatted date/time will be used
    as the value of an If-Modified-Since request header.

Now if you would be so kind to add support for this atom.php :)

  
http://git.savannah.gnu.org/cgit/savane-cleanup.git/tree/frontend/php/news/atom.php

-- 
Sylvain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]