Re: Lynx issues "Alert!: Reloading document. All form entries will be lost!" when using header('Cache-Control: no-cache');

Mike via Lynx-dev <[email protected]> Mon, 27 Jul 2026 21:04:38 +0200
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On 2026-07-27 14:28, Chuck Houpt wrote:
> 
> 
>> On Jul 26, 2026, at 2:26 PM, Mike via Lynx-dev <[email protected]> wrote:
>>
>> But some time ago I noticed that when I was using LMS in Lynx, there sometimes showed up old data in a form (as I'm checking now, that's not the case in Chrome). This is what issue 7 is about (https://github.com/decision-making-mike/lms/issues/7).
> 
> In the PHP, it looks like all the form elements use GET requests (action="get"), but at least some should use POST because they are creating/modifying a resource. Could this be the underlying problem?
> 
> Cheers - Chuck

Yes, LMS has 3 forms, and all of them use GET. In fact, no other method is used in LMS (this way I need not to think about yet another thing: the choice of the method). And yes, I think that POST, if not other methods, could be used at least in 2 forms, the removal and the modification-addition ones. I'm not sure yet if it would be best. Issue 1 is about it (https://github.com/decision-making-mike/lms/issues/1). So far I haven't been treating it a priority.

But I don't know if this is related to the data remanence. I'll try to change GET to POST at least in the modification-addition form, but it rather won't be a simple replacement.