GNU bug report logs - #526
Emacs 22, url package, problems with cache

Previous Next

Package: emacs;

Reported by: "Alexander Pohoyda" <alexander.pohoyda <at> gmx.net>

Date: Thu, 3 Jul 2008 10:35:03 UTC

Severity: normal

Tags: notabug

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Alexander Pohoyda" <alexander.pohoyda <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#526: Emacs 22, url package, problems with cache
Date: Thu, 03 Jul 2008 12:25:36 +0200
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 <alexander.pohoyda <at> gmx.net>
PGP Key fingerprint:
7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44







This bug report was last modified 13 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.