Git Product home page Git Product logo

gitcdn.xyz's Introduction

Hi there πŸ‘‹

I'm a Web/AR/VR/XR developer, working for the University of Southern Queensland (USQ ) in the Office for the Advancement of Learning & Teaching (OALT).

I make interactive and immersive activities that promote learning and engagement for students, helping them get the most from their course, and helping examiners build more meaningful tertiary education experiences.

I also make the reasonable popular GitCDN

✨Open source enthusiast, education evangalist ✨

  • Pull Requests appreciated
  • Issues welcome (well not welcome.. well.. you know what I mean!)

Looking to contact me?

Pronouns: He/Him

gitcdn.xyz's People

Contributors

kaubosh avatar king6cong avatar mischah avatar noo-zh avatar parth avatar schme16 avatar turquoise-turtle avatar vednig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitcdn.xyz's Issues

support for private repos?

Does gitcdn.xyz currently support private repos? Couldn't find any mention of private repos in the documentation. So far no luck with private raw links with access tokens.

Missing charset in content-type HTTP header

I noticed that some JavaScript files look garbled when viewed directly in the browser via a GitCDN URL. Compare for instance

https://rawgit.com/muan/emoji/gh-pages/javascripts/emojilib/index.js (looks OK)

with

https://gitcdn.xyz/repo/muan/emoji/gh-pages/javascripts/emojilib/index.js (garbled)

Apparently GitCDN is not adding charset=utf-8 on content-type headers when serving JS files, and that causes browsers to display those files as if they were ISO-8859-1 encoded. Of course, that's not a problem when the files are loaded in a HTML page, it just looks silly to developers who look at them.

I was wondering if there is a way we can get the UTF-8 charset added. Other CDNs I'm aware of (RawGit, raw.githack.com, Staticaly, etc.) do that already.

Internal Server Error

Hi, I have error with this one:
https://gitcdn.xyz/repo/sindresorhus/github-markdown-css/gh-pages/github-markdown.css
I have other files from gitcdn too, they are working fine.

Most all requests are returning 503

Visit https://gitcdn.link/

base.css:1 Failed to load resource: the server responded with a status of 503 ()
clipboard.js:1 Failed to load resource: the server responded with a status of 503 ()
/sys/js/url-formatter.js:1 Failed to load resource: the server responded with a status of 503 ()
/favicon.ico:1 Failed to load resource: the server responded with a status of 503 ()
base.css:1 Failed to load resource: the server responded with a status of 503 ()

Same issue for AngularJS Material CodePen resource URLs:

index.html:4 GET https://cdn.gitcdn.link/cdn/angular/bower-material/v1.1.10-master-0671aab/angular-material.css net::ERR_ABORTED 503

screen shot 2018-09-30 at 2 52 12 pm

Tried to use gitcdn.xyz as a workaround, but these also 503:

Redirected to incorrect commit

I just pushed a new commit to my project where i changed the source file directory and i am getting directed to an old commit with "404: Not Found":

old raw url : https://raw.githubusercontent.com/arctelix/drag-resize-snap/master/drs.js
new raw url : https://raw.githubusercontent.com/arctelix/drag-resize-snap/master/dist/drs.js

The link generated from new raw url :
https://gitcdn.xyz/repo/arctelix/drag-resize-snap/master/dist/drs.js

Redirects to this commit and i get a "404: Not Found":
https://cdn.gitcdn.link/cdn/arctelix/drag-resize-snap/dc4a39f3189680e6f8188e0d08ff2d52e05a12d5/dist/drs.js

If i manually enter the latest commit it works just fine:
https://cdn.gitcdn.link/cdn/arctelix/drag-resize-snap/f301bfcc65b4bd9a4e6746ff59beee2b264f6374/dist/drs.js

The following urls do correctly redirect to the proper commit
https://cdn.gitcdn.link/repo/arctelix/drag-resize-snap/master/dist/drs.js
https://cdn.gitcdn.link/repo/arctelix/drag-resize-snap/v0.1.1/dist/drs.js

Is the https://gitcdn.xyz/repo/ endpoint no longer correct?
Should we be using https://cdn.gitcdn.link/repo/ instead?

Thanks for your awesome service!!

Browser is not caching resources

I just noticed that requests to a gitcdn.xyz URL returns a 301 status code to the URL to the last revision of the resource, as expected. Nevertheless, the URL of the revision always returns a 200 status code with a Expires header to the current time. This means that the resource will never be cached.

screen shot 2018-03-24 at 11 20 37

Loading stylesheets using `crossorigin=anonymous` returns `Not Found`.

I've tried to load several stylesheets using crossorigin=anonymous:

<link rel="stylesheet" type="text/css" crossorigin="anonymous" href="https://gitcdn.xyz/repo/pseudocd/pcdn/master/stylesheets/normalize/normalize.min.css">

When crossorigin=anonymous is used, the stylesheets hits Not Found with X-Cache: MISS.

scr

Ability to remove content from your CDN

I'd like to remove/purge 2 links from your CDN (both created by myself), since I've not used the files I'd like to. Both of them are from the same secret Gist.

Does GitCDN have this capability?

The files in question are:

https://gitcdn.xyz/repo/Aathish04/388f4c03f45b60d9aceae64910e48016/raw/0d25a78dbf5b565e395941bf955872b0d0d6e3ea/prism.css

and

https://gitcdn.xyz/repo/Aathish04/388f4c03f45b60d9aceae64910e48016/raw/0d25a78dbf5b565e395941bf955872b0d0d6e3ea/prism.js

EDIT: I wanted the files removed as I thought gitcdn wouldn't fetch the latest version from the gist. Now that I realise GitCDN actually gets the most recent version, I no longer have a need for this feature. Might be something people would want in the future though. I also moved from .xyz to .link . Not sure if that should affect anything.

branch with / not populating

Guide to install

Well,
i found your project much interesting than rawgit. I am a php dev. And more important, i don't know JS.

It would be awesome if you can actually write up a wiki explaining on how to install it with a cdn like maxcdn or cloudflare.

Your helps are more welcomed πŸ‘

Part of my repository has been blacklisted for no apparent reason

Hello, I was just informed that my repository, mini.css, has been blacklisted. I don't know why that might be, but the project files have not been altered in the past few months, so I doubt there was something that I did to justify the ban. If there is a valid reason for this blacklist, please inform me, I'd be happy to help fix it if possible. Otherwise, if this is by mistake or an automated process, could you please fix this problem and let me know?

Thanks in advance!

Edit (follow-up)

Turns out that the mini.css default flavor file (uncompressed) works fine, but the compressed one does not. So turns out the repository is not completely blacklisted or something like that? Not sure, just thought this information might be useful.

the style wont apear

I reloaded my discord and now the style was gone, so I checked if anything was wrong and checked the main source code and it said it was blacklisted. pls help

CSS file now forbidden.

Hey! :)

I've been using gitCDN for a small project for a few months now and it has been great so far!
However, suddenly a CSS file which the project fetches using gitCDN no longer works, and I get the message that it is forbidden.

I'm not sure if I have somehow misused the system to end up with this file blocked, but I would be very happy to change things if I know what has gone wrong!

This is the link to the Repo in question and this is the particular file which is blocked.

I really hope that we can fix whatever has happened here, as I have truly found gitCDN great!
Thanks in advance!

Edit: Under extra inspection, I may not have been using the right URL for my job (a /repo/ instead of /cdn/ in there). I apologise for that, and hopefully you can confirm that this was in fact the issue and that there is nothing more I need to fix up. If there is, however, I am happy to work it out!

Cache not updating

I've waited for more than 4h but the content is not yet updated.
Is there a way to purge the cache?

Support gists

Please? Pretty pretty please? It would be just marvelous.

Cache not updating?

Hi,
I just tried out your system. It says that it needs round about 2 ours for changes to be distributed(as the cache is held for those 2 hours).

~6Hours ago i hit the following link:
https://gitcdn.xyz/repo/Memnarch/TestRepository/master/info.json

Then i commited a change(directly from within the Github page) changing first_version from v1.2 to v1.22, as you can see here:
https://raw.githubusercontent.com/Memnarch/TestRepository/master/info.json

however, the link above has not yet been updated. I am a bit confused right now.

Paid Version?

So I was frustrated with the limitations of GitHack and RawGit and noticed that your repo page mentioned potential paid plans. I was thinking you could max out the cache times on the free CDN while offering the following for the paid tier:

  • Reduced CDN cache times
  • Reduced limits on developer proxy
    • Integrate with Github/Gitlab webhooks
  • Ability to purge cache
    • API for cache purging
    • Integrate with Github/Gitlab webhooks
  • Custom Git hosts
  • Proxy private repos
    • Directory and file-type based access control (like a dist folder)
  • Custom DNS
  • Minification
  • HTTP/2 server push

Not sure how you would split the premium/paid proxies, maybe allow control based on Github authentication? A distinct endpoint would also allow you to offer HSTS, key pinning, and stricter CORS settings as premium upgrades.

URL cache

Hi,

This is not really an issue, but rather a question: how does the URL cache really works, and how often or is (or should be) updated? Because I'm using the URL as follows:

https://min.gitcdn.xyz/repo/<username>/<project>/master/<file>

but this URL doesn't update as often as I thought it would... From my understanding in the docs, this should look for the latest commit every ~2h, but it is still pointing to an older commit for several days now...

Thanks in advance!

Support "pseudo HTTP parameters" , e.g. https://gitcdn.xyz/repo/user/repo/page.html?param=value

What I call "pseudo HTTP parameters" (maybe there is a better naming ?) are parameters in URL that look like regular HTTP parameters, but since the base URL is a static page, they are not interpreted by the HTTP server, but by some JavaScript code.

My real-life use case is this one :

wget --header='Accept: text/html' --debug \
  'https://gitcdn.xyz/repo/jmvanel/rdf-calendar/master/rdf-calendar.html?url=http://semantic-forms.cc:1952/ldp/1543748445108-1972318919276873'

I think this should not be difficult to implement :) , but I'm not a JavaScript guy .

Caching 404's

I accidentally hit a URL before the commit was fully pushed and it cached the empty response. No worries, it's not mission critical and I can wait 2 hours. May be worth not caching 404 or having a shorter short-cache time though. Understandable if not, assuming that could potentially open a way to abuse the system.

Thanks for a great utility.

Appeal: this repo/gist is on the blacklist

Users are getting this message when trying to access our file from this CDN:

Forbidden - This repo/gist is on the blacklist. If you wish to appeal, please open an issue here: https://github.com/schme16/gitcdn.xyz/issues, with why you feel this repo should not be on the blacklist.

I'm not sure how we got on the blacklist, but we are using this CDN to serve our bundle for a legit project which is part of the freeCodeCamp offering which is one of the most popular open source repositories on github.

Our repo is https://github.com/freeCodeCamp/testable-projects-fcc

Internal Server Error from Gist links

I noticed that links to Gist files aren't working correctly.

Raw gist url:
https://gist.githubusercontent.com/dotspencer/a888b5d63ddd91963cbd5e276febc980/raw/6ff714e9326a10671f625fea2fee4b5538d6c187/page.html

GitCDN url:
https://gitcdn.xyz/repo/dotspencer/a888b5d63ddd91963cbd5e276febc980/raw/6ff714e9326a10671f625fea2fee4b5538d6c187/page.html

The GitCDN url is returning Internal Server Error and I have tried with some other gist urls and they all result in the same error.

I pulled the source code to see if I could locate the problem but I noticed that it seems to be working fine in a new heroku app that I ran the code on. I'm not sure what could be causing this problem.

HTTP parameters in URLs cause "Application error" in gitcdn.xyz

For many years gitcdn.xyz worked flawlessly with putting even non existing URL parameters in URLs so that browser cache issues could be elegantly worked-around. Now since a few weeks/month using URL parameters seem to cause "Application errors" to be outputted.

E.g. the following gitcdn.xyz URL causes an heroku "Application error" to appear:

https://gitcdn.xyz/repo/jens-maus/RaspberryMatic/master/release/LATEST-VERSION.js?test=1

screenshot_323

However, the following same URL but without any ?XXX=YYY parameter attached works flawlessly like before:

https://gitcdn.xyz/repo/jens-maus/RaspberryMatic/master/release/LATEST-VERSION.js

Any help would be highly appreciated.

server down

Presented with notice;
image

Text;

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.