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

Only thumbnails coming from CDN

Discussion in 'Media Gallery Support' started by motowebmaster, Mar 28, 2015.

  1. motowebmaster

    motowebmaster Active Member

    I may have forgotten, but can't remember why thumbnails would be the only element being served from my CDN. The media-view and full-size images are being served directly from my server.

    Is that normal, or is there something I've missed?
  2. Chris D

    Chris D XenForo Developer Staff Member

    If you're using an add-on to provide the CDN functionality then you would need to contact the author of that add-on.

    Otherwise, the only way that XF (and the Gallery) would support hosting files from a different location is by specifying a custom internal data directory in your config.php

    $config['internalDataPath'] = 'internal_data';
  3. Derek Zeanah

    Derek Zeanah Member

    Could I get clarification on this? I've been using MaxCDN on vB for years, and continue to use them now that I'm on Xenforo.

    Is there a simple change we can do to have images and media cached in the CDN that I've missed?
    Robru likes this.
  4. Mike

    Mike XenForo Developer Staff Member

    Generally, no. Attachments (including media) are generally served by PHP to enforce permissions (and to potentially allow other functionality). As such, they are served by the web server.

Share This Page