Skip to content

Create one way to handle network dependencies (validator, etc.) #378

@ithinkihaveacat

Description

@ithinkihaveacat

AMP has some dependencies on a few resources hosted on cdn.ampproject.org: a document is valid iff the validator hosted at cdn.ampproject.org says it is, the definitive source of runtime version comes from this host, etc.

For various reasons, it's not always a good idea to actually fetch these resources every time a module is invoked. (e.g. if attempting to validate multiple files it's not feasible/reasonable to fetch the validator for every file that needs to be validated; running tests should be possible without network access.)

Various AMP Toolbox modules (and friends) have created different approaches to dealing with these problems, see:

We should probably come up with a single mechanism for handling these use cases.

/cc @Gregable @sebastianbenz @fstanis

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions