PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Webdev 22 cash  problem
Webdev 22 cash problem
Iniciado por guest, 24,ene. 2018 11:27 - 1 respuesta
Publicado el 24,enero 2018 - 11:27
Hi,

I have a problem with cach
I have a querie that updates a table for a pictures,. The pictures are icons. The icons can change and the colour of the Icons can change.

Is it possible to clear the cach . If I do a refresh with Cntr-F5 then all is fine.

It seems to be doing this because I use a querie. ?

Hope this makes any sence.

Thanks

Allard
Publicado el 24,enero 2018 - 13:29
Hi Allard,

a browser cache works based on the NAME/URL of the image to display... it THAT doesn't change, then the image doesn't change either.

So you can:
- if you are using a URL to display the image, add a nonsensical paramater to it (datetime=datesys()+timesysy() by example)
- if you are using code, then change the NAME of the image file...

It's even possible to rename all the images based on their content, by using the checksum of the image content as name for the file... This way, when the content changes, you recalculate the name, and it's going to be different, and therefore no cache problem.

Best regards