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

Fixed Make all Media Gallery thumbnails cacheable in browsers (static URLs of thumbnails)

Discussion in 'Media Gallery Resolved Bugs' started by Avensen, Mar 31, 2015.

  1. Avensen

    Avensen Member

    When a visitor opens a page containing media gallery thumbnails (latest items at forum home or previews of media items at gallery home) browser reloads some media gallery thumbnails on that page, even if it already had loaded them earlier. This increases overall page load time and creates additional load on server.

    I guess this is because some thumbnail URLs are dynamic (have ?t= changing parameter).

    For example, on the first page load a particular thumbnail image source is:

    then on the second visit, same thumbnail image source is:

    So, it's impossible to leverage caching of all thumbnails images via .htaccess.

    Can we have static URLs of all thumbnail images, so it would be possible to force browser level caching via .htaccess file?

    This problem exists at least with thumbnails of YouTube videos (not all images in gallery).

    Media gallery version 1.03.
    Last edited: Mar 31, 2015
  2. Mike

    Mike XenForo Developer Staff Member

    This appears to be specific to videos. Other images do have a cache buster that doesn't change (when unnecessary).

    I've moved this into bugs to examine if there's a reason we do this for videos specifically.
    Avensen likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    This is fixed now, thanks.

Share This Page