[Tinhte] Image Attachment Optimization & CDN Support

Unmaintained [Tinhte] Image Attachment Optimization & CDN Support 2.3.0 20170315

No permission to download
Compatible XF 1.x versions
  1. 1.3
  2. 1.4
  3. 1.5

Imagine a thread with 100 image attachments, when a user loads the page, these images generate 100x6 = 600 queries in my DB servers (in full-size image mode). This's crazy!

This addon reduces the usual 6 queries per image to 1 per image, resulting in 83% less queries for busy, images-focused websites. Images will also be cached in client browsers to improve performance further.

  1. Force image attachments work with Guest permission (Guests can view full image attachments without login logged in permission).
  2. Decrease to minimum queries for Image Attachment Display, in our test, we can save from 6 to 1 query per an image (in case of guests or logged in users without "Remember option").
  3. Add caching headers to images. Browsers won't load these images again if the same page reloaded.
  4. (New) Support CDN for attachment images. You can serve these images via CloudFront, MaxCDN or other CDN services.
Screen Shot 2012-08-04 at 9.44.02 AM.webp

To have all benefits of using this add-on, you should turn on Xenforo Caching feature for your forum (memcached, xcache,...).

Screen Shot 2012-07-29 at 9.12.32 PM.webp
First release
Last update


4.96 star(s) 24 ratings

More resources from agison

Latest updates

  1. Maintenance release

    Corrected bug: full XFMG image links were redirected to attachments
  2. 2.3

    And an option to ignore some content types. By default XMG images will be ignored.
  3. Xenforo 1.2 Compatible

    Update: Support Xenforo 1.2 Now!

Latest reviews

Jesus, this really a great addon, it helps me so much, luckily i try to use it, i almost ignore the addon and if so i would be struggle to deal my problems
Excellent addon, especially for a forum like mine which is heavh on attachment images. Thanks for creating this.
Wonderful addon which makes it very easy to serve attachments via CDN. Works perfectly. Thank you!
Thank you for this excellent modification. A wonderful mod to post any images on CDN servers. This mod does a lot with just a few settings. I give you also 6 stars :)
An excellent add-on. Helps speed up loading of static Xenforo resources considerably by allowing both attachments and basic Xenforo static content, such as images and JS, to be served via a CDN.
Good addon
Really useful.
good addon
This really sped up my board. It's very noticeable and I can't believe this is a freebie. Top notch!
Top Bottom