Turn off .lc Web-browser Caching?

Rick Harrison harrison at all-auctions.com
Sun Sep 2 10:01:54 EDT 2018


Hi Tom,

Unfortunately, I wanted to stay away from
javascript because some people turn it off
in their web-browsers for security reasons.

The solution I finally used was to just rename
the image so that it looked new to the web-browser,
and then update the database with the new name.
I did it using LiveCode so no javascript was required.

Thanks for your suggestion anyway.

Rick

> On Aug 30, 2018, at 8:24 PM, Tom Glod via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> try using javascript by doing "do in widget"
> 
> https://www.ajaymatharu.com/how-to-prevent-image-from-caching-in-javascript/
> 
> i bet that javascript may be your best chance at controlling the browser
> widget in any kind of detail.  good luck let us know if you got it.
> 
> On Thu, Aug 30, 2018 at 5:51 PM Rick Harrison via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Hi there,
>> 
>> I know this has come up before but
>> looking through the old archives didn’t
>> seem to turn up a working answer.
>> 
>> Is there a good way to prevent a web-browser
>> from re-displaying an image in it’s cache?
>> 
>> I tried using a random number after the .lc URL
>> such as:
>> 
>> http://www.mysite.com/destination.lc?r=39923959 <
>> http://www.mysite.com/destination.lc?r=39923959>
>> 
>> I have also tried:
>> 
>> put "<meta http-equiv='Cache-Control' content='no-cache' />"
>> put "<meta http-equiv='Pragma' content='no-cache' />"
>> put "<meta http-equiv='Expires' content='-1' />”
>> 
>> and that doesn’t seem to work either.
>> 
>> Did anyone ever come up with a good solution?
>> 
>> Thanks,
>> 
>> Rick
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list