Agent Wranglers

WEB-14Optional

Push feed updates to subscribers

If you publish a feed, name a WebSub hub in it and in a Link header. Tell the hub whenever the content changes.

How to do it

Name a hub, for example https://pubsubhubbub.appspot.com/, with <link rel="hub"> in the feed. After each deploy, POST hub.mode=publish to the hub. Tell search engines in the same step, as Tell search engines what changed says.

Examples

HTTP example

Link: <https://pubsubhubbub.appspot.com/>; rel="hub", <https://example.com/feed.xml>; rel="self"

Shell example

curl -d hub.mode=publish -d hub.url=https://example.com/feed.xml https://pubsubhubbub.appspot.com/

How to check

The hub's subscriber diagnostics show the feed and the last publish.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/html-basics/websub">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.