Issues with store images (hopefully now fixed)

News and information about the exxos store. Includes common questions and answers, plus information on new items for sale or items which will be coming off sale soon etc
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Issues with store images (hopefully now fixed)

Post by exxos »

Something which puzzled me for ages is the store images seem to take a long time to "draw".. Because of that, I tried to preload the sprite image in the html page. Job done I thought..... But the problem remained.

While updating the sprite sheet with a new power supply images, Chrome was caching the old sprite image and simply refused to grab the new one. After screwing around in the nginx config for the past few hours trying to force the headers to not cache etc, it wasn't working at all. In fact regardless what I did, the headers were completely missing. I even tried usual ".jpg?1234" thing but nope.

Turns out , what was actually happening, is the sprite data file, which has the image name in it, which is called from another PHP script, seems to be treated as a completely different image file to all extents :roll:

So I have updated my sprite creation script, to add a random number on the end of the file name, and lo and behold, chrome has now downloaded the proper updated image!!

I have now removed the preload out of the HTML data, and now it seems to have solved the problem of the images taking too long to render in the store! Rather than drive myself even more loopy trying to figure this out, I will just assume it was downloading the image twice causing the delay.

TL;DR:
Store images should properly update and render faster now... :hide:

Return to “EXXOS WEBSTORE INFORMATION”

Who is online

Users browsing this forum: ClaudeBot and 4 guests