W3C home > Mailing lists > Public > public-html@w3.org > January 2012

Re: Meta element to prevent resending post data

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Sat, 28 Jan 2012 21:21:16 +0000
Message-ID: <CAEhSh3ef8ENkoZmjxjsn7W+M_4zZHrVtqPhbc4iYG2skCA4F0Q@mail.gmail.com>
To: "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>
Cc: public-html@w3.org
On Thu, Jan 26, 2012 at 10:05 PM, Marat Tanalin | tanalin.com
<mtanalin@yandex.ru> wrote:
> Sending arbitrary HTTP headers is trivial task for modern script languages like PHP, but unfortunately is not an option at all for some self-made CMS written in compiled language like Delphi that a company has _anyway_ no resources to rework in, say, next 10 years.

Seems like an edge case for a non-critical usability flaw that will
gradually disappear as both server and client software improves.

New features would take years to help your users, but you can probably
solve their problems with technologies available today.

At content generation time, you could insert a JS enhancement to post
the form with XMLHttpRequest, leaving users running your JS free to
reload the page at will. You'd need to insert a <script> element
rather than a <meta> element.

Alternatively, you could modify the response to the POST either with
the webserver behind which the CMS sits or with a proxy talking to
that webserver, for example using Apache's mod_ext_filter module:


Benjamin Hawkes-Lewis
Received on Saturday, 28 January 2012 21:21:45 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:47 UTC