Pardon my ignorance, but is it possible to host WebPerl on github?

In theory, I could've uploaded the emperl.* build results onto GitHub, there is even the jsDelivr CDN that can be used for GitHub content. However, WebPerl isn't small - ~16MB uncompressed and 4MB compressed (if the server chooses to compress it). I also didn't know in advance how much it would get hit, and whether GitHub or that CDN might start enforcing some limits, and I didn't want to risk getting anything locked out because I am hosting large files that are being hit too often. Hence the separate domain and a CDN under my control.

Shouldn't that be the same top domain?

Not necessarily - that's why the CORS headers are needed.

I'm confused, do all sites which fetch jquery or bootstrap from a cdn add CORS headers?

code.jquery.com and maxcdn.bootstrapcdn.com both send the CORS header - but off the top of my head, I can't tell you whether it's required when also using Subresource Integrity (MDN seems to say that it is). I'm not an expert on this topic, this is just what I've figured out while getting WebPerl running :-)


In reply to Re^3: [WebPerl] Freely hosting an application by haukex
in thread [WebPerl] Freely hosting an application by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.