1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Tinhte] Image Attachment Optimization & CDN Support 2.2.11

Adding caching headers for browsers, saving queries & faster loading for Image Attachments

  1. Dinh Thanh
    Compatible XF Versions:
    • 1.3
    • 1.4
    • 1.5
    NOTE: THIS ADDON CURRENTLY DOESN'T WORK WITH XENFORO PROXY FEATURE.

    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.

    WHAT DOES IT DO?
    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.png

    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.png
    Amin Sabet, MattW, alexlvt and 30 others like this.

Recent Updates

  1. Xenforo 1.2 Compatible
  2. Bug fix
  3. Follow Xenforo URL Friendly rules

Recent Reviews

  1. Amin Sabet
    Amin Sabet
    5/5,
    Version: 2.2.11
    Wonderful addon which makes it very easy to serve attachments via CDN. Works perfectly. Thank you!
  2. Robru
    Robru
    5/5,
    Version: 2.2.11
    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 :)
  3. Ketola
    Ketola
    5/5,
    Version: 2.2.11
    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.
  4. Breixo
    Breixo
    5/5,
    Version: 2.2.11
    Thanks!
  5. imspot
    imspot
    5/5,
    Version: 2.2.11
    Good addon
  6. Sheratan
    Sheratan
    5/5,
    Version: 2.2.11
    Really useful.
  7. fly_indiz
    fly_indiz
    4/5,
    Version: 2.2.11
    good addon
  8. Strong
    Strong
    5/5,
    Version: 2.2.11
    This really sped up my board. It's very noticeable and I can't believe this is a freebie. Top notch!
  9. oVR
    oVR
    5/5,
    Version: 2.2.11
    amazing! so much faster!
  10. akia
    akia
    5/5,
    Version: 2.2.10
    Does as it says on the tin. Works perfectly.