wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.8k stars 814 forks source link

Fallback for channel_v3.json #1024

Open dogancelik opened 8 years ago

dogancelik commented 8 years ago

Website is down, so we can't reach https://packagecontrol.io/channel_v3.json The default cache_length is 300 seconds, so it gets emptied quickly. A fallback URL for JSON files would be nice or a CDN (CloudFlare?) that only serves JSON data under different URLs, something like:

jakebian commented 8 years ago

+1

thotypous commented 8 years ago

+1 I'm using this one for the time being: https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json

Gubith commented 8 years ago

Times out: https://packagecontrol.io/channel_v3.json

Fails instantly: https://backup.packagecontrol.io/channel_v3.json https://cdn.packagecontrol.io/channel_v3.json

"works" https://web.archive.org/web/20150905194312/https://packagecontrol.io/channel_v3.json

Thanks thotypous

wbond commented 8 years ago

I would recommend against using 3-month-old package metadata.

wbond commented 8 years ago

BTW, this would be a great time to consider a $2.50 a month donation to PC. If I could get a good number of users doing so, I could set up a more fault tolerant architecture.

thotypous commented 8 years ago

I would recommend against using 3-month-old package metadata.

Of course I enabled it as only during the time Linode was offline, for an emergency plugin install ;)

What about adding a subdomain cached by CloudFlare pointing to the same Linode box which hosts the main domain? Should be fairly easy to setup and provide some level of fallback for free.

aral commented 8 years ago

PS. In case you’re wondering how to donate to @wbond for a more robust architecture, here’s the link to the page on the web site:

https://packagecontrol.io/say_thanks

(Might be an idea to make that more prevalent and to add it to the readme on the repo also. No shame in asking.) :)

whirlwind110 commented 8 years ago

I have created a mirror in my server. but only http

(@wbond removed URL since it was insecure and the channel is back up)

wbond commented 8 years ago

For users coming here after the recent outage, please see #1057 for more information.