From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alexander Pohoyda" Newsgroups: gmane.emacs.bugs Subject: bug#526: Emacs 22, url package, problems with cache Date: Thu, 03 Jul 2008 12:25:36 +0200 Message-ID: <20080703102536.58570@gmx.net> Reply-To: Alexander Pohoyda , 526@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215089819 16147 80.91.229.12 (3 Jul 2008 12:56:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 12:56:59 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 14:57:40 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEONQ-00079D-VO for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 14:57:33 +0200 Original-Received: from localhost ([127.0.0.1]:48240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEOMa-0001MU-DN for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 08:56:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEMLO-0006yZ-Ii for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:47:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEMLM-0006x2-Ne for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:47:17 -0400 Original-Received: from [199.232.76.173] (port=40079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEMLM-0006ws-3A for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:47:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53638) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEMLL-0000E1-Le for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:47:15 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m63AlDaR014695; Thu, 3 Jul 2008 03:47:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m63AZ3Tk011246; Thu, 3 Jul 2008 03:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Alexander Pohoyda" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 03 Jul 2008 10:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 526 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12150807479964 (code B ref -1); Thu, 03 Jul 2008 10:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Jul 2008 10:25:47 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m63APhhG009958 for ; Thu, 3 Jul 2008 03:25:45 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEM0U-0002go-WA for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEM0S-0002e7-Ah for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:41 -0400 Original-Received: from [199.232.76.173] (port=34187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEM0S-0002dl-19 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:40 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:42549) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KEM0R-0004HT-Dv for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2008 06:25:39 -0400 Original-Received: (qmail 28966 invoked by uid 0); 3 Jul 2008 10:25:36 -0000 Original-Received: from 155.56.68.221 by www153.gmx.net with HTTP; Thu, 03 Jul 2008 12:25:36 +0200 (CEST) X-Authenticated: #14602519 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+rqLEIfzurPK25CcO7K4von8sr7H/0NkxxxFwYbF lzXlhLcvi23wdt3GAnUKF2PsmS8AHXMILTRg== X-GMX-UID: FJtbf4hvbGInTG6ns2RnISlvcmZ1ZhwA X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 03 Jul 2008 06:47:17 -0400 X-Mailman-Approved-At: Thu, 03 Jul 2008 08:55:41 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18625 Archived-At: The url-automatic-caching variable is nil by default, so cache is not written (even the cache directory is not created). However, if I manually provide "If-Modified-Since" header in HTTP request and the server responds with "Not Modified 304", the cache file is expected to exists and is accessed -- which leads to error. Possible solution -- before accessing the cache file, check whether it exists (url-is-cached). Alternatively, do not expect a cache to exist if url-automatic-caching is set to nil. -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44