[Zope] Management of HEAD requests

Jesus Cea jcea at jcea.es
Tue Mar 15 08:39:19 EDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Using Zope 2.10 here.

When making a HEAD request, I get the "last-modified" time of the
script, and an "application/octet-stream" content type. The content
length is the script length.

When doing a GET request, I get a "last-modified" time of "now" and a
"text/html" content type. And the length is correct here.

As far as I know, the HEAD doesn't reach the script, it is processed
inside Zope. I would rather prefer to actually process the script but
give back only the headers.

That is, my problem is that HEAD and GET of the same object provide
completely different information about different objects (HEAD gives
info about the actual script, GET gives info of the script output). This
could be even a privacy issue, giving out script details people don't
need to know.

Is there any way to override this?. Suggestion?

I have issues, for instance, managing RSS feeds, since some clients do a
HEAD request instead of a conditional GET, for detecting new entries.

Thanks in advance, folks.

A (mostly) happy user since 1998.

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTX9d95lgi5GaxT1NAQJl6AP/cd4gkk2ekPaue2Ikd1K2FQ6tKv1fEve7
x/TEzFH4q5b9PfTeABt0zQuUkudoWOk0C4qljlX2+Z7zF/xvsBWbQGamrgu8c588
jKIL27/NhsqJdeY2K7lNIlrZGk5wl49dSOlR+tJDoSqJjl7yDXLtZ2iuT0SZYK7v
CeDUEeWO6mw=
=O7xc
-----END PGP SIGNATURE-----


More information about the Zope mailing list