PDA

View Full Version : Using cachefly or other sencha cdn



sologroupdev
20 Jan 2012, 8:18 AM
We're looking to use ext 4.0.7 from the Sencha CDN.

Wondering if there is a period of time before Ext shows up on cachefly. Or if it is even being pushed up there any longer? I can't find a definitive resource on using the Sencha approved CDN and when the library versions are posted there, if at all.

In various docs and tutorials, I've found:
extjs.cachefly.net
cdn.sencha.io

But no specific paths to the libraries or a guide telling when and what is available.

I've found the custom library build tool, and different urls at which ext v4 is there, but nothing consistent.

Is there information I am missing here? Or perhaps this is not practiced any longer?

mitchellsimoens
20 Jan 2012, 8:55 AM
Since we have our own cdn, I wouldn't think we would use cachefly

sologroupdev
20 Jan 2012, 8:59 AM
I don't understand your response, Mitchell. By 'we' you mean Sencha?

I thought we license holders had access to that CDN. Is there documentation or a basic FAQ?

Mike

mitchellsimoens
20 Jan 2012, 9:05 AM
Yes, 'we' means Sencha as I work there.

There really isn't any doc on the cdn (which I just looked and is powered by cachefly) although you could try replacing the version number (except not always working, 4.0.7 does not):

http://cdn.sencha.io/ext-4.0.2a/

sologroupdev
20 Jan 2012, 9:34 AM
I have tried replacing the version numbers and, indeed, there are many that are not there, such as 4.0.7.

Since 4.0.7 was a public release last year in October and there are no (discoverable) files on the CDN for it, I would guess that there is no policy on placing the files there? I'd like to find out if there is

The cdn does get mentioned in tutorials and docs for things like Sencha Touch, and there is a build tool to place files on the cdn, so I'm hoping that it is still used. Is there another forum or location where I can find if it is still being managed? Thanks.

rondinos
20 Jan 2012, 1:20 PM
Your answer is: http://cdn.sencha.io/ext-4.0.7-gpl/

sologroupdev
20 Jan 2012, 1:39 PM
Thanks rondinos. May I ask where the info came from? Is there a list somewhere?

Mike

rondinos
20 Jan 2012, 2:14 PM
Yes sure, but this is for the open source version of ExtJS4
I am not sure how it works with a licensed version

Just go to
http://www.sencha.com/products/extjs/download/

In the section 'Working in Open Source?', you will see a blue button
click on it and it will bring you to the download page.

Ignore the download, and scroll to the bottom and you will see a section that says:
Sencha.io CDN Powered by CacheFly

Does this answer your question ?

foxontherock
27 Mar 2013, 10:21 AM
If your app use https, you better use extjs.cachefly.net instead of cdn.sencha.io. That points to the same file, but it works in https, as the SSL certificated is registered to *.cachefly.net.

By using that syntax, it will automatically get the http or https to fit your browser status.

<script src="//extjs.cachefly.net/ext-4.2.0-gpl/ext-all.js"></script>

You can do the same for stylesheet
<link href="//extjs.cachefly.net/ext-4.2.0-gpl/resources/ext-theme-gray/ext-theme-gray-all.css" rel="stylesheet" />