Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81816

Re: Cherrypy - prevent browser "prefetch"?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'definition,': 0.09; 'enabled,': 0.09; 'forms,': 0.09; 'get.': 0.09; 'links.': 0.09; 'received:internal': 0.09; 'subject:Cherrypy': 0.09; 'entirely.': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'skipping': 0.16; 'which,': 0.16; 'wrote:': 0.18; 'entries': 0.24; 'earlier': 0.24; 'task': 0.26; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'said,': 0.30; 'clicked': 0.31; 'received:66': 0.35; 'usual': 0.35; 'are,': 0.36; 'should': 0.36; 'received:10': 0.37; 'button': 0.38; 'form,': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'days': 0.60; 'from:no real name:2**0': 0.61; 'mentioned': 0.61; 'browser': 0.61; 'simple': 0.61; 'header:Message-Id:1': 0.63; 'side': 0.67; 'to,': 0.72; '2014,': 0.84; 'confirming': 0.84; 'harmful': 0.84
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=mesmtp; bh=D8LgEKSpHYHN44i4N2eTP1ybMfU=; b=CxsbvK w5jnZFynUcOFBPa0BqhDCIpYCMwuBdOWAE/LILL8SzkChrUFGMMH8dxLfkaeMjp+ LAGZssqKKt5ZH4qSFQ0vvnD1TJQRKtaf4q85t1QjSU68FoXe+9p9XIeCVz30+aPX rmIF6/op6tfCX7En6VDDHsHFGoxjJmQXqk3cM=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date:in-reply-to:references; s=smtpout; bh=D8LgEKSpHYHN44i4N2eT P1ybMfU=; b=tgcHtjv0mrNq59kHxi47CpX/16TJJs9EKjdJAo+gL5Y/pJLLOGT6 4i8N4/dPQESxw4+/o5X02tdXTJc0x4mdxVOPyxHY255+qc10Y2aHgIzoOywYWxoH x6bMD9Zz3TQjPHDTph6frG3MvrIXH1fQYJ9Hz9IRPxT+/qdN3fhVSjE=
X-Sasl-Enc L2XGKJUL52F3hBlgEJU25ZW/phvEouxM5ky2bQuskA8d 1417559099
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding quoted-printable
Content-Type text/plain; charset="UTF-8"
X-Mailer MessagingEngine.com Webmail Interface - ajax-53201334
Subject Re: Cherrypy - prevent browser "prefetch"?
Date Tue, 02 Dec 2014 17:24:59 -0500
In-Reply-To <D7096D8B-6876-413F-8C05-758AB6970EAA@ravnalaska.net>
References <6B74D6DD-A597-4BCF-8586-D0A56C9CDB77@ravnalaska.net> <1417527181.1832828.197804893.3AA95580@webmail.messagingengine.com> <D7096D8B-6876-413F-8C05-758AB6970EAA@ravnalaska.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16502.1417559107.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417559107 news.xs4all.nl 2917 [2001:888:2000:d::a6]:38532
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81816

Show key headers only | View raw


On Tue, Dec 2, 2014, at 10:59, Israel Brewster wrote:
> Primary because they aren’t forms, they are links. And links are, by
> definition, GET’s. That said, as I mentioned in earlier replies, if using
> a form for a simple link is the Right Way to do things like this, then I
> can change it.

As I understand it, the usual way to do this these days is to have a
link which, A) when navigated to, provides a simple standalone form
confirming the action with a button and B) when clicked on with a
browser with javascript enabled, automatically submits a hidden form, or
an AJAX/JSON request or something, to accomplish the same task skipping
the standalone page entirely. This will also have the effect of keeping
these entries out of your browser history.

Any action which has harmful or annoying side effects should definitely
not be a GET.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Cherrypy - prevent browser "prefetch"? random832@fastmail.us - 2014-12-02 17:24 -0500

csiph-web