Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'element': 0.07; 'javascript,': 0.07; 'ugly': 0.07; 'subject:Cherrypy': 0.09; '(other': 0.16; '-tkc': 0.16; '12:50': 0.16; "can't.": 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'received:10.216': 0.16; 'tag,': 0.16; 'tends': 0.16; 'wrote:': 0.18; 'input': 0.22; "shouldn't": 0.24; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'function': 0.29; 'generally': 0.29; 'dec': 0.30; 'run': 0.32; 'style': 0.33; 'knowledge': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'received:10': 0.37; 'button': 0.38; 'rich': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'itself': 0.39; 'visual': 0.39; 'to:addr:python.org': 0.39; 'break': 0.61; 'browser': 0.61; 'difficulty': 0.68; 'request.': 0.70; '2014,': 0.84; 'batchelder': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1417488451608:1790308995 X-MC-Ingress-Time: 1417488451608 Date: Mon, 1 Dec 2014 20:50:00 -0600 From: Tim Chase To: python-list@python.org Subject: Re: Cherrypy - prevent browser "prefetch"? In-Reply-To: <60102F31-5184-4FFF-B99E-23A5B0313399@ravnalaska.net> References: <6B74D6DD-A597-4BCF-8586-D0A56C9CDB77@ravnalaska.net> <20141201152608.09ca6f13@bigbox.christie.dr> <60102F31-5184-4FFF-B99E-23A5B0313399@ravnalaska.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417488456 news.xs4all.nl 2896 [2001:888:2000:d::a6]:52342 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81790 On 2014-12-01 13:14, Israel Brewster wrote: > On Dec 1, 2014, at 12:50 PM, Ned Batchelder >> The way to indicate to a browser that it shouldn't pre-fetch a >> URL is to make it a POST request. > > Ok, that makes sense. The only difficulty I have with that answer > is that to the best of my knowledge the only way to make a HTML > link do a POST is to use the onclick function to run a javascript, > while having the "link" itself point to nothing. Well, generally one would use a form where the method=POST and then the button/input submits it:
This is an input
or
The advantage of a