Alternatives icon indicating copy to clipboard operation
Alternatives copied to clipboard

Discord cdn URLS

Open Kathund opened this issue 1 year ago • 5 comments

At some point in the past year discord changed there urls for there CDN and making it now require auth to visit/view. Going to an discord cdn link now says This content is no longer available. The only way to get that file is pasting that link into a discord channel and then clicking it.

Would there not be a better way to host these files? Test Location: docs/1.8.9/5zig.md#L51

Kathund avatar Oct 30 '24 08:10 Kathund

If you have a solution I'd love to hear it. I'm not sure what to do about this short of rehosting jars myself on GitHub or something (which I'd rather not do)

MicrocontrollersDev avatar Oct 30 '24 15:10 MicrocontrollersDev

You can host them on Cloudflare r2 its free until you store more than 5gb requires a cc in cf tho

Tricked-dev avatar Oct 31 '24 06:10 Tricked-dev

as long as there's no chance of me getting overcharged like $3k overnight I have no problem giving my cc (that 3k comes out of genshin funds). will look into it

MicrocontrollersDev avatar Oct 31 '24 06:10 MicrocontrollersDev

https://developers.cloudflare.com/r2/pricing/ Iirc b and c are for writing and listing and the rest is free so like a million people could download and you wouldn't pay a dime

Tricked-dev avatar Oct 31 '24 07:10 Tricked-dev

I would advise you to put the r2 bucket on a subdomain and use a page rule or something to force everything from that subdomainnto be cached for 6 hours

Tricked-dev avatar Oct 31 '24 07:10 Tricked-dev