Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81781
| Return-Path | <python.list@tim.thechases.com> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; ';-)': 0.03; 'executes': 0.09; 'impose': 0.09; 'subject:Cherrypy': 0.09; 'cc:addr:python- list': 0.11; '"are': 0.16; '-tkc': 0.16; 'begging': 0.16; 'caching': 0.16; 'did,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'merely': 0.16; 'site).': 0.16; 'wrote:': 0.18; 'server,': 0.19; 'cc:addr:python.org': 0.22; 'load': 0.23; 'proxy': 0.24; "shouldn't": 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'performing': 0.26; 'post': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'code': 0.31; 'serve': 0.31; 'chase': 0.31; 'front': 0.32; 'cases': 0.33; 'google': 0.35; 'there': 0.35; 'doing': 0.36; 'charset:us-ascii': 0.36; 'application': 0.37; 'two': 0.37; 'received:10': 0.37; 'server': 0.38; 'actions': 0.38; 'pm,': 0.38; 'rather': 0.38; 'high': 0.63; 'skip:n 10': 0.64; 'request.': 0.70; '4:26': 0.84; 'batchelder': 0.84; 'bounce': 0.91; 'trouble.': 0.91 |
| 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 | 1417471777054:257115205 |
| X-MC-Ingress-Time | 1417471777054 |
| Date | Mon, 1 Dec 2014 16:12:07 -0600 |
| From | Tim Chase <python.list@tim.thechases.com> |
| To | Ned Batchelder <ned@nedbatchelder.com> |
| Subject | Re: Cherrypy - prevent browser "prefetch"? |
| In-Reply-To | <m5inqh$kdt$1@ger.gmane.org> |
| References | <6B74D6DD-A597-4BCF-8586-D0A56C9CDB77@ravnalaska.net> <20141201152608.09ca6f13@bigbox.christie.dr> <m5inqh$kdt$1@ger.gmane.org> |
| 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 |
| Cc | python-list@python.org |
| 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.16473.1417471790.18130.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417471790 news.xs4all.nl 2937 [2001:888:2000:d::a6]:33768 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:81781 |
Show key headers only | View raw
On 2014-12-01 16:50, Ned Batchelder wrote: > On 12/1/14 4:26 PM, Tim Chase wrote: >> All this to also say that performing non-idempotent actions on a >> GET request is just begging for trouble. ;-) > > This is the key point: your web application shouldn't be doing > these kinds of actions in response to a GET request. Make them > POST requests, and Safari won't give you any trouble. Though to be fair, based on the reading I did, Safari also pulls in the various JS and executes it too, meaning that merely (pre)"viewing" the page triggers any Google Analytics (or other analytics) code you have on that page, sending "page views" with a high bounce rate (looks like you only hit one page and never browsed elsewhere on the site). Additionally, if the target GET URL involves high processing load on the server, it might be worthwhile to put a caching proxy in front of it to serve (semi)stale data for any preview request rather than impose additional load on the server just so a preview can be updated. So I can see at least two cases in which you might want to sniff the "are you just previewing, or do you actually want the page" information. Perhaps there are more. -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Cherrypy - prevent browser "prefetch"? Tim Chase <python.list@tim.thechases.com> - 2014-12-01 16:12 -0600
csiph-web