Post Reply 
Author Aria Templates CDN
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
Information  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.
(This post was last modified: 9 October 2013 15:51 by Olaf.)
Julian Descottes
AT core team member

Find all posts by this user
Quote this message in a reply
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 ?
jakub-g
AT core team member

Find all posts by this user
Quote this message in a reply
17 October 2013 10:06
+1 for the list of available versions Wink

http://jakub-g.github.io/
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
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.)
Julian Descottes
AT core team member

Find all posts by this user
Quote this message in a reply
22 October 2013 12:27
Oops forgot to check the forum for a while.

But that's great, thanks !
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
Default  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.
piuccio
Member

Find all posts by this user
Quote this message in a reply
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
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
13 November 2013 09:12
Indeed, I actually meant to do that from the beginning and forgot. Thanks for the reminder.
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
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.
(This post was last modified: 21 November 2013 15:25 by Olaf.)
Olaf
Administrator

Find all posts by this user
Quote this message in a reply
21 November 2013 15:16
Normally, as of right now, IE8 should be working fine thanks to this library Julian discovered.
Post Reply