cloudflare-apps / ideas

A list of Cloudflare App Ideas (in Issues)
https://www.cloudflare.com/apps/developer/docs/getting-started
43 stars 12 forks source link

Web Manifest #256

Open ithinkihaveacat opened 7 years ago

ithinkihaveacat commented 7 years ago

(1) generate a manifest file similar to https://webmanife.st/ (https://github.com/patrickkettner/manifestation) and (2) inject into HTML.

/cc @patrickkettner

patrickkettner commented 7 years ago

@ithinkihaveacat - when you say inject into html, how do you mean?

ithinkihaveacat commented 7 years ago

@patrickkettner I'm not entirely sure what mechanisms are available. Best case would be transforming the HTML to add <link rel=manifest>. But it might be sufficient to inject via JS (pretty sure Cloudfare's apps system will support this, though I don't know if browsers will acknowledge it), or even adding the header link: <...>; rel=manifest.

The other problem is making the manifest itself available. (i.e. arranging for Cloudflare to serve a "virtual" resource that doesn't exist on the origin.) But I'm hoping this will be possible; it's also needed for #257.

matthewoates commented 5 years ago

This is now possible with Cloudflare Workers. https://www.cloudflare.com/products/cloudflare-workers/