unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Alexander Pohoyda" <alexander.pohoyda@gmx.net>
To: bug-gnu-emacs@gnu.org
Subject: bug#526: Emacs 22, url package, problems with cache
Date: Thu, 03 Jul 2008 12:25:36 +0200	[thread overview]
Message-ID: <20080703102536.58570@gmx.net> (raw)

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@gmx.net>
PGP Key fingerprint:
7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44









             reply	other threads:[~2008-07-03 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 10:25 Alexander Pohoyda [this message]
2008-07-07 12:36 ` bug#526: Emacs 22, url package, problems with cache Magnus Henoch
2008-07-07 12:45   ` Processed: " Emacs bug Tracking System
2011-07-22 14:04 ` Julien Danjou
2011-09-11 17:11 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080703102536.58570@gmx.net \
    --to=alexander.pohoyda@gmx.net \
    --cc=526@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).