# Want to understand s3\_cdn\_url files setting

**URL:** <https://meta.discourse.org/t/want-to-understand-s3-cdn-url-files-setting/45799>\
**Category:** Product Support\
**Created:** [17.Июнь.2016 01:18:55 UTC](https://meta.discourse.org/t/want-to-understand-s3-cdn-url-files-setting/45799 "2016-06-17T01:18:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)\
**Post date:** [22.Июнь.2016 21:37:34 UTC](https://meta.discourse.org/t/want-to-understand-s3-cdn-url-files-setting/45799/4 "2016-06-22T21:37:34Z")

</div>

So if my understanding is correct then I think there might be a bug here:

> <https://github.com/discourse/discourse/blob/ebd4b4577168644ff1132af85215bfa2034ecdbb/lib/cooked_post_processor.rb#L244>

When an image has a lightbox built when cooking a post, it seems that the non CDN URL is used, since when an image is ok to display without lightbox then the CDN _is_ used. If anything it would be better the other way around, as in the multiple images in posts in the main topic is exactly the thing that would benefit from the CDN.

If my understanding of the feature is correct then I can try to figure out a pull request fix, but if it’s not then I need someone on the Discourse team like @codinghorror to take a look and let me know where I misunderstand the intention of this bit. Cheers!

---

_[View the full topic](https://meta.discourse.org/t/want-to-understand-s3-cdn-url-files-setting/45799)._
