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:
REMINDER - Stay logged in for at least 2 hours a week to get whitelisted.
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
Issues with store images (hopefully now fixed)
-
exxos
- Site Admin

- Posts: 28404
- Joined: 16 Aug 2017 23:19
- Location: UK
Who is online
Users browsing this forum: ClaudeBot and 3 guests