Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No pubDate for RSS messes up etags for the feed #2777

Closed
andris9 opened this issue May 16, 2014 · 10 comments
Closed

No pubDate for RSS messes up etags for the feed #2777

andris9 opened this issue May 16, 2014 · 10 comments
Labels
bug [triage] something behaving unexpectedly

Comments

@andris9
Copy link

andris9 commented May 16, 2014

RSS module takes an optional property pubDate which is used for <lastBuildDate> header in the RSS XML. Ghost does not provide this value and current time is used by default. This in turn messes up HTTP response ETag headers – as the RSS feed seems to be "different" a new ETag is generated for every request. Thus If-None-Match requests do not work. Making ETags work properly would make it possible to return an empty 304 response to such query instead of the full RSS feed.

Proposed solution: use the date of the newest message as pubDate for the feed.

@halfdan
Copy link
Contributor

halfdan commented May 16, 2014

@andris9 Not really sure about that, but looking at our RSS feed from Ghostalk, Ghost does provide the lastBuildDate in the header: https://talk.ghost.io/rss/

It is even taken from the date of the most recent post.

What version are you running?

@shindakun
Copy link
Contributor

@halfdan Does appear to occur on self hosted running tag 0.4.2, as I can see my site doing the same. I'm at work so I can't dig much further at the moment. I'll dig into a bit further in a couple of hours though.
ghostrss

@shindakun
Copy link
Contributor

I looked further anyway lol, shhh https://github.com/dylang/node-rss/blob/master/lib/rss.js#L75

@halfdan
Copy link
Contributor

halfdan commented May 16, 2014

Right, so most of that is going to be fixed once I ship my own RSS library
:-/ Not sure what to do about it in the meantime.
On 17 May 2014 00:35, "Steve Layton" notifications@github.com wrote:

I looked further anyway lol, shhh
https://github.com/dylang/node-rss/blob/master/lib/rss.js#L75


Reply to this email directly or view it on GitHubhttps://github.com//issues/2777#issuecomment-43389988
.

@shindakun
Copy link
Contributor

@halfdan Rushed release of your library? j/k Any idea what they are using on the hosted site? (Or is it your library?)

@halfdan
Copy link
Contributor

halfdan commented May 17, 2014

Hosted is cached by cloudflare. My library isn't close to done yet - will
have to spend some extra hours on it to get it into a state where it's good
enough to replace node-rss.
On 17 May 2014 01:00, "Steve Layton" notifications@github.com wrote:

@halfdan https://github.com/halfdan Rushed release of your library? j/k
Any idea what they are using on the hosted site? (Or is it your library?)


Reply to this email directly or view it on GitHubhttps://github.com//issues/2777#issuecomment-43391097
.

@ErisDS
Copy link
Member

ErisDS commented May 20, 2014

@halfdan :shipit:

@ErisDS ErisDS added the bug label May 29, 2014
@ErisDS ErisDS added this to the 0.5 Multi-user milestone May 29, 2014
@ErisDS ErisDS modified the milestones: 0.5.x Feature Release, 0.5 Multi-user Jul 8, 2014
@JohnONolan
Copy link
Member

Should be addressed in #2263

@ErisDS ErisDS added bug and removed bug labels Aug 19, 2014
@ErisDS ErisDS removed this from the 0.5.x Feature Release milestone Aug 19, 2014
@ErisDS
Copy link
Member

ErisDS commented Aug 19, 2014

Going to close this against #2263 as there seems little point in having both issues open.

@ErisDS
Copy link
Member

ErisDS commented Sep 10, 2014

#3993 should get this resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [triage] something behaving unexpectedly
Projects
None yet
Development

No branches or pull requests

5 participants