|Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread|
|Messages 1 to 3 of 3 total|
|TImage and browser cache|
|Tue, Mar 7 2017 11:00 AM||Permanent Link|
Is there a way to tell the browser not to cache the file/image that is returned and loaded when setting the TImage.URL property?
I return an image file from my server using a single filename but the content is always a different image.
It is only the first time I set the TImage.URL property that it goes to the server to read the file. Consecutive URL property assignments gets the image from the browser cache.
|Tue, Mar 7 2017 11:13 AM||Permanent Link|
> It is only the first time I set the TImage.URL property that it goes to the server to read the file. Consecutive URL property assignments gets the image from the browser cache.
I can't help you with the question how to avoid the cache, but that's
what I do:
Image1.URL := 'MyImage.jpg' + '?' + FloatToStr(Random);
With the param the image is different for the browser and is loaded
|Tue, Mar 7 2017 11:28 AM||Permanent Link|
That fooled the browser cache.
This web page was last updated on
Thursday, March 30, 2023 at 10:19 AM
© 2023 Elevate Software, Inc. All Rights Reserved
Questions or comments ? E-mail us at email@example.com