New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapBBCode Loader #235
MapBBCode Loader #235
Conversation
Would latest version work http://www.jsdelivr.com/wiki/latest-versions ? |
Not quite: I'd prefer to keep loader 1.2 to 1.2.x version of MapBBCode, 1.3 to 1.3.x and so on. |
if that's not desirable, I can just synchronize loader versions with mapbbcode versions, releasing new loader version along mapbbcode every time. It's no big trouble. I'll have to undo this pull request in that case and submit a new one, for 1.2.0. |
Technically you can update existing files since you are the author. The problem is the caching. If not then we can talk about it and find some solution. |
All right, I'll resubmit the pull request. (oh wait, I don't have to resubmit pull request, just update this one) But apart from that, I think it would be nice to have version-dependent latest. There are two ways this can be done (examples from that wiki page):
Loads version 3.8.16 if it is the latest version in 3.8 branch.
This will load version 3.8 if there is a directory for it, or the latest version in 3.8 branch (3.8.16) it there isn't. There might be a problem if author doesn't keep version format consistent. |
I want to make the URLs more dynamic but my problem is reliability. With static files I know 100% the user will get the contents of the file. But for example if I create a PHP script to handle different parameters like the versions you said then a lot of new points of failure are added. script code, php-fpm, MySQL, server load... |
MapBBCode Loader
Hi! This is a supplemental script for MapBBCode library, which loads that library only when it's needed. It is possible to create map plugins for forums with this file alone — and if it's uploaded to a CDN, with no files and no editing at all! There will be an article on habrahabr on that tomorrow :)
The catch is, I'd like to update files in this project when minor versions of MapBBCode are released, so users won't have to worry about those releases. Is it possible, or I will have to create new version every time?
If it's ok, please merge this project to your CDN. Thanks!