Re: Atom and prev links

Greg Young <[email protected]> Fri, 28 Jun 2013 15:10:17 +0300
Newsgroups gmane.comp.web.services.rest
Message-ID <CAC9RQthi9Gmkw0+4RkOHL50MppUJTbOLUCwnNKx=54bF1zXBkw@mail.gmail.com>
And if I returned a 204?

On Fri, Jun 28, 2013 at 3:04 PM, Markus Lanthaler
<[email protected]>wrote:

> **
>
>
> On Friday, June 28, 2013 12:58 PM, Greg Young wrote:
> > Actually we have a pretty simple reason for this caching.
> >
> > If we were to hide the prev that uri would have to be non-cachable.
> > If we put it there (we are forward only) then every valid uri we
> > have is infinitely cachable. By predefining the next only our
> > non-existant uri is non-cachable.
>
> Well, a 404 can be cached as well, so it's not that much of a difference.
> Just use an Etag or something similar for the last page and drop it as soon
> as you put the link in.
>
> If I would implement a client, I wouldn't keep polling the 404. I would
> just
> assume your feed is broken.
>
> --
> Markus Lanthaler
> @markuslanthaler
>
>  
>



-- 
Le doute n'est pas une condition agréable, mais la certitude est absurde.