M
M
Mesuti2021-11-29 15:12:38
GitHub
Mesuti, 2021-11-29 15:12:38

Can I set up a free CDN with GitHub Pages?

Hey!
How efficient and reasonable would it be to organize a free CDN on GitHub Pages to host libraries from javascript and css files for easy connection to any sites?
In order not to download to each hosting, but to have one centralized version for everyone.
For example, connect to all as jquery

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>


On githubpages the connection looks like
<script src="https://login.github.io/script.min.js"></script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheAndrey7, 2021-11-29
@Mesuti

Once again GitHub will collapse and pull your site with it - you will get broken scripts.
I don’t see any problem storing it on my server, at least you won’t depend on the work of other resources. Distribution of a couple of kilobytes of static does not carry any load on the server. Pictures load more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question