LC Server and forcing page refreshes

Tim Selander selander at tkf.att.ne.jp
Fri Jun 2 07:57:12 EDT 2023


Got busy the past couple of days, but just tried this, Ralf -- 
works perfectly! (Assuming because it changes the cached URL??)

Thank you!

Tim Selander
Tokyo, Japan

On 2023.05.30 17:09, Ralf Bitter via use-livecode wrote:
> Hi Tim,
> 
> how about adding a query string in the form of a timestamp to the 
> member’s URL like:
> 
> ?foo=1685433742125
> 
> 
> Ralf
> 
> 
> On 30.05.2023 02:32, Tim Selander via use-livecode wrote:
>> Once again find myself over my head in just a simple 
>> programming project.
>>
>> I made a little club members directory website, using LC server 
>> on on-rev's hosting site.
>>
>> Members can edit their info. I use a form, with the action 
>> going to an LC script. This script gets all the post data, 
>> shuffles it off to the database, and then goes back to the 
>> member's page using a re-direct:
>>
>>   <meta http-equiv = "refresh" content = "2; url = <?lc put 
>> vlink?>" />
>>
>> where vlink has the member's URL.
>>
>> My Problem: If folk update their photos, their browser cache 
>> still shows the old picture -- logically leading them to think 
>> the update failed.
>>
>> The photos are simply stored on the server, the database only 
>> stores the path of the file. The photo file shown on the 
>> member's page with an image tag.
>>
>> Can any of the gurus here tell me how to get the page to ignore 
>> the cache so the browser shows the new photo?
>>
>> Many thanks.
>>
>> Tim Selander
>> Tokyo, Japan
> 
> 
> 
> _______________________________________________
> 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