Веб-приложения


uiWebPrevious1uiWebNext

#1 [en] 

I'm using a php script to generate a dynamic image. I noticed the ryzom client is caching images by url (?) and does not refresh them, even with the php script generating a new one.

One solution I found, is to attach a random number to the script like <img src="script.php?816348368"> but this is a very crude solution.

Are there more elegant ways to bypass this "dirty cache" problem of the client?

Thanks,
arc

---

#2 [en] 

Arcueid
Are there more elegant ways to bypass this "dirty cache" problem of the client.
There is (style="reload:1") in the code which is supposed* to trigger reload and only keep single file on cache.

*but it does not do that currently, because cached file is not deleted.

Cache busting (image.jpg?random) is standard way of doing things tho

Last edited by Karu (8 лет назад)

---

Hello!
uiWebPrevious1uiWebNext
 
Last visit Вторник, 16 Апреля 17:51:45 UTC
P_:

powered by ryzom-api