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

feat(blog): simple JSONP blog feed available at /blog-feed.js #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrclay
Copy link
Member

@mrclay mrclay commented Oct 4, 2016

No description provided.

@jdalsem
Copy link
Member

jdalsem commented Oct 4, 2016

No need... you can do https://elgg.org/blog?view=json

@mrclay
Copy link
Member Author

mrclay commented Oct 4, 2016

Can't fetch via XHR, sends anti-cache headers, ands full content of 10 posts.

header("Pragma: public", true);
header("Cache-Control: max-age=$max_age", true);
header("Content-Type; application/javascript; charset=utf-8");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should remove Set-Cookie header to be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants