Aria Templates Forums
Aria Templates CDN - Printable Version

+- Aria Templates Forums (http://ariatemplates.com/forum)
+-- Forum: Public forums (/forumdisplay.php?fid=3)
+--- Forum: Support (/forumdisplay.php?fid=8)
+--- Thread: Aria Templates CDN (/showthread.php?tid=94)

Pages: 1 2 3


Aria Templates CDN - Olaf - 9 October 2013 15:48

Following a discussion Julian started a while ago, we've put in place a CDN to serve AT on http://cdn.ariatemplates.com.

Because the framework relies on xhr to fetch its dependencies, the server implements CORS support to allow cross-domain calls.

Now, using the latest version of AT in your project is as simple as including this line in your bootstrap:
<script src="http://cdn.ariatemplates.com/atlatest.js"></script>

Check out the homepage for a description of the service and a few examples.


RE: Aria Templates CDN - Julian Descottes - 15 October 2013 07:07

The CDN is a great asset, well done ! And having the rootmap included in the response is actually very helpful, even if I had my doubts before.

and now complaining :
Could we have the list of versions available on the CDN somewhere on the homepage ?


RE: Aria Templates CDN - jakub-g - 17 October 2013 10:06

+1 for the list of available versions Wink


RE: Aria Templates CDN - Olaf - 17 October 2013 15:54

The homepage has been updated to list the min/max versions available.

Also, the default rootFolderPath is now set to / (and can still be overridden with the URL parameter.)


RE: Aria Templates CDN - Julian Descottes - 22 October 2013 12:27

Oops forgot to check the forum for a while.

But that's great, thanks !


RE: Aria Templates CDN - Olaf - 31 October 2013 10:12

Aaaaand of course, IE is being a pain. So: IE7 doesn't handle CORS, while IE8/9 require the use of a dedicated object for x-domain Ajax calls (an explanation from MS here.)

I'll add a word in the disclaimer of the cdn homepage for now.

In the long run, it may be interesting to see if we can use the lib Julian found (https://github.com/jpillora/xdomain) and serve this specific code for stupid browsers.


RE: Aria Templates CDN - piuccio - 7 November 2013 06:59

This is great!

It's true that it's not for production code, but it would still be nice to enable far-expire caching of files, that anyway are versioned so there'll be no problem caching them for at least one year.

Kudos


RE: Aria Templates CDN - Olaf - 13 November 2013 09:12

Indeed, I actually meant to do that from the beginning and forgot. Thanks for the reminder.


RE: Aria Templates CDN - Olaf - 15 November 2013 11:14

The CDN now issues proper cache headers (which are reset when there is an update for atlatest.js.)
Also, BenoƮt suggested this, http://cdn.ariatemplates.com/versions returns a JS object with the current min and max versions served.


RE: Aria Templates CDN - Olaf - 21 November 2013 15:16

Normally, as of right now, IE8 should be working fine thanks to this library Julian discovered.