Best practice to avoid expiring attachment URLs? #204798
Replies: 2 comments 2 replies
This comment was marked as low quality.
This comment was marked as low quality.
|
Hi, Good observation — yes, this is a known limitation, not just something happening in that one repo. Here’s the short version of what’s going on:
If you want the image to stay available permanently, use one of these options instead: Best option: Commit the image into a repository and use the raw GitHub URL:
This stores the image as part of the repository and its history, so it will not expire. Alternative: Host the image externally (for example, Imgur, Cloudinary, Amazon S3, or your own server) and use that URL. I would avoid relying on |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
As seen in this line from the community repo, it looks like even GitHub itself can't avoid the issue of attachment URLs expiring.
Given this, what is the recommended best practice for keeping embedded attachments permanent?
All reactions