LC Server and forcing page refreshes

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Tue May 30 04:31:22 EDT 2023


Couldn't you disable the caching with meta html tags? See here for a explanation

https://cristian.sulea.net/blog/disable-browser-caching-with-meta-html-tags/



Regards,
Matthias


> Am 30.05.2023 um 02:32 schrieb Tim Selander via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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