<p>Have you considered <a href="https://cdnjs.com/" rel="nofollow noreferrer">CDNjs.com</a>:</p>

<ul>
<li>It supports CORS headers, it is dedicated to JavaScript after all.</li>
<li>It supports HTTP/2 as well as SPDY.</li>
<li>The cache duration is 355 days, which is probably plenty long enough.</li>
<li>Cloudflare is used as the CDN, they provide it to cdnjs.org for free.</li>
</ul>

<p>Adding your library is a bit more than a one-liner unfortunately as you need to submit a pull request to their GitHub repository.  You will also need to have a certain popularity requirement:</p>

<blockquote>
  <p>For the new library request issue, please make sure it's not a personal project, we have a basic requirement for the popularity, like 200 stars on GitHub or 800 downloads/month on npm registry.</p>
</blockquote>

CC BY-SA 4.0
2019-11-14T04:57:39.480Z
Thank you for the suggestion. This would be great for a popular library. Most of our packages are really only interesting within the organization, so it, unfortunately, doesn't fit my use case.
mikabytes
CC BY-SA 4.0
2019-11-07T17:29:33.250Z
2019-11-07T17:29:33.250Z
Richard Slater
<p>We will be serving static javascript ES modules and looking for an all-in-one hosting platform that is easy to use. </p>

<ul>
<li>It must provide CORS headers (ES modules enable CORS by default)</li>
<li>HTTP/2 support is mandatory</li>
<li>Ability to set very long caching headers (content never changes)</li>
<li>Mirrored all across the world for fast transfers with low latency.</li>
<li>Pushing a new version should be a simple oneliner.</li>
</ul>

<http><cdn><cors>
Service for hosting native JavaScript ES modules
mikabytes
# Service for hosting native JavaScript ES modules

(Asked by: username_0 on 2019-11-04)

We will be serving static javascript ES modules and looking for an all-in-one hosting platform that is easy to use.

* It must provide CORS headers (ES modules enable CORS by default)
* HTTP/2 support is mandatory
* Ability to set very long caching headers (content never changes)
* Mirrored all across the world for fast transfers with low latency.
* Pushing a new version should be a simple oneliner.

**Tags:** http, cdn, cors


---

## 1 answers

### Answer by username_1 on 2019-11-07. Score: 1

Have you considered [CDNjs.com](https://cdnjs.com/):

* It supports CORS headers, it is dedicated to JavaScript after all.
* It supports HTTP/2 as well as SPDY.
* The cache duration is 355 days, which is probably plenty long enough.
* Cloudflare is used as the CDN, they provide it to cdnjs.org for free.

Adding your library is a bit more than a one-liner unfortunately as you need to submit a pull request to their GitHub repository. You will also need to have a certain popularity requirement:

> For the new library request issue, please make sure it's not a personal project, we have a basic requirement for the popularity, like 200 stars on GitHub or 800 downloads/month on npm registry.

> **Comments:**
> **username_0**: Thank you for the suggestion. This would be great for a popular library. Most of our packages are really only interesting within the organization, so it, unfortunately, doesn't fit my use case.  

---

