curl caches a package's main module as having an absolute id of the package's name. Case in point: when.js is cached internally as "when". However, if a module references that main module using a full module id or a relative module id, e.g. "when/when" -- or relatively as "./when", then curl caches the module again. Both "when" and "when/when" are cached.
We need to determine what the correct id should be in curl's cache. Notes:
need to keep compatibility with requirejs and r.js
need to consider the possibility that "when/when" could be requested before "when"
should we automatically put two entries in the cache?
curl caches a package's main module as having an absolute id of the package's name. Case in point: when.js is cached internally as "when". However, if a module references that main module using a full module id or a relative module id, e.g. "when/when" -- or relatively as "./when", then curl caches the module again. Both "when" and "when/when" are cached.
We need to determine what the correct id should be in curl's cache. Notes: