[idea] Add latest link for scripts #987

Closed
AliMD opened this Issue Mar 2, 2013 · 5 comments

Comments

Projects
None yet
4 participants

AliMD commented Mar 2, 2013

Thank you for create this useful cdn
Do you agree with this idea
add latest (in file name) for last version or link without version
for example:
//cdnjs.cloudflare.com/ajax/libs/jquery/latest/jquery.min.js
or
//cdnjs.cloudflare.com/ajax/libs/jquery/1/jquery.min.js

like google cdn
//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

if you agree with this useful idea i will fork and change all links.

Owner

ryankirkman commented Mar 3, 2013

Hi @AliMD - thanks for the suggestion. This is a very popular request. At the moment, it's not really feasible to maintain all of these links manually even with your help as it would be easy to miss some.

What we're trying to do is figure out an automated way to do it that requires no manual maintenance.

ryankirkman closed this Mar 3, 2013

ryankirkman reopened this Mar 3, 2013

AliMD commented Mar 3, 2013

ok thanks
automated way is easy as use .htaccess + php or nodejs or even apache ssi (if you cant run php or node on CloudFlare) to redirect to the correct script.
do you can run server-side script on cdnjs.com ?

Owner

ryankirkman commented Mar 4, 2013

Great suggestions Ali. I'll see what we can work out with CloudFlare.

On Sunday, March 3, 2013, Ali Mihandoost wrote:

ok thanks
automated way is easy as use .htaccess + php or nodejs or even apache ssi
(if you cant run php or node on CloudFlare) to redirect to the correct
script.
do you can run server-side script on cdnjs.com ?


Reply to this email directly or view it on GitHubhttps://github.com/cdnjs/cdnjs/issues/987#issuecomment-14340119
.

Contributor

JordanMagnuson commented Mar 18, 2013

I agree that being able to link to the latest version of a library would be a very useful feature... otherwise applications that want to use the latest version of a library are having to constantly update pointers...

As AliMD has pointed out, seems like this wouldn't be particularly difficult to achieve, technically.

One of my few complaints for a very useful cdn :)

Contributor

petecooper commented May 14, 2014

I've referenced this issue in #360 as they are very closely connected. I will close this issue for now - it can be reopened if/when the latest script request becomes more feasible.

petecooper closed this May 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment