# With S3 enabled, image's being redirected to respective S3 URLs

**URL:** https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925
**Category:** Feature
**Created:** [27 juni 2014 om 16:02 UTC](https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925 "2014-06-27T16:02:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aahank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aahank/32/107187_2.png) [@aahank](https://meta.discourse.org/u/aahank)
#### Post date: [27 juni 2014 om 16:02 UTC](https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925/1 "2014-06-27T16:02:38Z")

</div>

For example, go to [my forum](https://discourse.aahan.me/). On the home page, the URL to the “system” user’s avatar you see is: [https://discourse.aahan.me/user\_avatar/discourse.aahan.me/system/25/3.png](https://discourse.aahan.me/user_avatar/discourse.aahan.me/system/25/3.png)

Open the image in a new tab, and it redirects to: [https://discourse-aahan-me.s3.amazonaws.com/40c02a6e22dbe066ce83e32e0b2d09e8dd2bad4643\_25x25.png](https://discourse-aahan-me.s3.amazonaws.com/40c02a6e22dbe066ce83e32e0b2d09e8dd2bad4643_25x25.png)

Here’s the thing. Even after enabling S3 for off-loading uploads to, the forum is still referencing the original URLs, instead of the S3 URL. This not only results in greater loading time, but also puts unnecessary load on the server.

Is this intended?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [27 juni 2014 om 17:55 UTC](https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925/2 "2014-06-27T17:55:07Z")

</div>

> [@aahank](#):
>
> Is this intended?

Yes that’s how it works. We proxy the image link to S3 because we’re generating thumbnails on the fly.

Performance-wise, the redirection is only done once since the image is heavily cached on the client.

---

<div class="post-metadata">

### Author: ![aahank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aahank/32/107187_2.png) [@aahank](https://meta.discourse.org/u/aahank)
#### Post date: [27 juni 2014 om 18:07 UTC](https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925/3 "2014-06-27T18:07:18Z")

</div>

Wish there was a better way, but yeah, as the images are cached, it should be fine.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [4 december 2025 om 11:31 UTC](https://meta.discourse.org/t/with-s3-enabled-images-being-redirected-to-respective-s3-urls/16925/4 "2025-12-04T11:31:03Z")

</div>


