# העלאות S3 - שימוש ב-CDN עבור קבצי PDF?

**URL:** <https://meta.discourse.org/t/s3-uploads-using-cdn-for-pdfs/213218>\
**Category:** Bug\
**Created:** [27 בדצמבר,‏ 2021,‏ 5:34pm UTC](https://meta.discourse.org/t/s3-uploads-using-cdn-for-pdfs/213218 "2021-12-27T17:34:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Beakerton](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/beakerton/32/244679_2.png) [@Beakerton](https://meta.discourse.org/u/Beakerton)\
**Post date:** [30 בדצמבר,‏ 2021,‏ 3:56pm UTC](https://meta.discourse.org/t/s3-uploads-using-cdn-for-pdfs/213218/4 "2021-12-30T15:56:23Z")

</div>

Thanks @pfaffman

I just rebaked all posts and found no change. After rebaking, I created some test posts again. To re-cap what I’m seeing (and looks like what @Richie sees)

-An image in a post correctly links to the CDN for the image displayed inline in the post.  
-For the image however, the “download” link (lower right when viewing the image full size), links to a short-url, which redirects to my S3 bucket (not the CDN)  
-For a PDF upload, the link links to a short-url, which redirects to my S3 bucket (not the CDN).

It appears that any time a short-url is used, the CDN is not used in the redirection.

For my Discourse setup, I am using S3 for both uploads and backups. I have not moved all of my existing uploads to S3 yet (will do once I get over this issue). I also do **not** have secure uploads enabled.

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/s3-uploads-using-cdn-for-pdfs/213218)._
