From 8a37bc9f2caad617a6506d47d97f1e88594481c8 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 3 Aug 2024 16:12:47 +0200 Subject: [PATCH] feat: switch CDN from jsdelivr to Cloudflare Updated the proxy route to use Cloudflare CDN instead of jsdelivr. Corresponding changes made in the HTML to reflect the new CDN, along with a rebrand from "nobsdelivr" to "nocdnbs". This enhances CDN reliability and availability. --- app.py | 2 +- templates/index.html | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app.py b/app.py index 6d90845..79d3858 100644 --- a/app.py +++ b/app.py @@ -9,7 +9,7 @@ def home(): @app.route('/') def proxy(url): - jsdelivr_url = f'https://cdn.jsdelivr.net/{url}' + jsdelivr_url = f'https://cdnjs.cloudflare.com/{url}' return redirect(jsdelivr_url) if __name__ == '__main__': diff --git a/templates/index.html b/templates/index.html index 4938d1c..ebb5594 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,9 +6,9 @@ name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> - nobsdelivr + nocdnbs