CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 07:36:38 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/gorhill/uBlock.git
etag: W/"a43f2fef82ac89a2ca6f20a2b8bab1dc"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=NTkXVrK9PJig%2BCU21Q9h%2FMGeq4phZpYTmt60VTBgy4Vx1G991KCPseR1j7TeQMUvimZZh1E%2BPTaAlo%2BFlbIFy0zdYg0duZOpPbRtqv6ZcUsl%2ByaYMzwUNac78tlCET%2BDhF9DlAgu9rk1ONk0LiGCuu3p9pt4NL7z%2F4ywPAKyEcUAbDgArEERPiOOeYfJpaQpFgojWHXpKxdYuisdLUD5NmLruhbkyYHs8zJHcJPktXfgjB7c6kbsGQHUOy92oC%2BdJ%2FJvoLATBAqeLiv6AHtYFg%3D%3D--8mSCncu%2FIjCkxyOZ--WN4I9qDe2SpIHefktTKLTg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.704507551.1753515398; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 07:36:38 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 07:36:38 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 909A:1799B9:2E8BF3:3F6D7E:68848585
Support fetching assets from CDNs when auto-updating · gorhill/uBlock@4687c60 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit 4687c60
committed
Support fetching assets from CDNs when auto-updating
This commit add the ability to fetch from CDN servers
when an asset is fetched as a result of auto-update.
If an asset has a `cdnURLs` entry in `assets.json`,
the asset will be auto-updated using one of those
CDN URLs. When many CDN URLs are specified, those
URLs will be shuffled in order to spread the bandwidth
across all specified CDN servers. If all specified CDN
servers fail to respond, uBO will fall back to usual
`contentURLs` entry.
The `cdnURLs` are used only when an asset is
auto-updated, this ensures a user will get the more
recent available version of an asset when manually
updating.
The motivation of this new feature is to relieve
GitHub from acting as a CDN (which it is not) for
uBO -- an increasing concern with the growing adoption
of uBO along with the growing size of key uBO assets.1 parent 2b5e281 commit 4687c60Copy full SHA for 4687c60
File tree
Expand file treeCollapse file tree
2 files changed
+52
-27
lines changedFilter options
- src/js
Expand file treeCollapse file tree
2 files changed
+52
-27
lines changed+47-25Lines changed: 47 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 |
| |
37 | 41 |
| |
38 | 42 |
| |
| |||
157 | 161 |
| |
158 | 162 |
| |
159 | 163 |
| |
160 |
| - | |
161 | 164 |
| |
162 | 165 |
| |
163 | 166 |
| |
164 | 167 |
| |
165 | 168 |
| |
166 | 169 |
| |
167 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 |
| |
169 | 174 |
| |
170 | 175 |
| |
| |||
743 | 748 |
| |
744 | 749 |
| |
745 | 750 |
| |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
746 | 764 |
| |
747 | 765 |
| |
748 | 766 |
| |
| |||
756 | 774 |
| |
757 | 775 |
| |
758 | 776 |
| |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
763 | 780 |
| |
764 | 781 |
| |
765 | 782 |
| |
766 | 783 |
| |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
771 | 788 |
| |
772 | 789 |
| |
773 | 790 |
| |
| |||
835 | 852 |
| |
836 | 853 |
| |
837 | 854 |
| |
838 |
| - | |
839 |
| - | |
840 |
| - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
841 | 859 |
| |
842 | 860 |
| |
843 | 861 |
| |
| |||
861 | 879 |
| |
862 | 880 |
| |
863 | 881 |
| |
864 |
| - | |
| 882 | + | |
865 | 883 |
| |
866 | 884 |
| |
867 | 885 |
| |
868 | 886 |
| |
869 | 887 |
| |
870 |
| - | |
871 |
| - | |
872 |
| - | |
873 |
| - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
874 | 892 |
| |
875 | 893 |
| |
876 | 894 |
| |
877 | 895 |
| |
878 | 896 |
| |
879 |
| - | |
880 |
| - | |
881 |
| - | |
882 |
| - | |
| 897 | + | |
883 | 898 |
| |
884 | 899 |
| |
885 | 900 |
| |
| |||
888 | 903 |
| |
889 | 904 |
| |
890 | 905 |
| |
| 906 | + | |
| 907 | + | |
| 908 | + | |
891 | 909 |
| |
| 910 | + | |
| 911 | + | |
| 912 | + | |
892 | 913 |
| |
893 | 914 |
| |
894 | 915 |
| |
| |||
912 | 933 |
| |
913 | 934 |
| |
914 | 935 |
| |
915 |
| - | |
916 |
| - | |
917 |
| - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
918 | 939 |
| |
| 940 | + | |
919 | 941 |
| |
920 | 942 |
| |
921 | 943 |
| |
|
+5-2Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1144 | 1144 |
| |
1145 | 1145 |
| |
1146 | 1146 |
| |
| 1147 | + | |
| 1148 | + | |
1147 | 1149 |
| |
1148 | 1150 |
| |
1149 | 1151 |
| |
| |||
1247 | 1249 |
| |
1248 | 1250 |
| |
1249 | 1251 |
| |
1250 |
| - | |
| 1252 | + | |
1251 | 1253 |
| |
1252 | 1254 |
| |
1253 | 1255 |
| |
| |||
1271 | 1273 |
| |
1272 | 1274 |
| |
1273 | 1275 |
| |
1274 |
| - | |
| 1276 | + | |
| 1277 | + | |
1275 | 1278 |
| |
1276 | 1279 |
| |
1277 | 1280 |
| |
|
You can’t perform that action at this time.
0 commit comments