-----BEGIN PGP SIGNED MESSAGE-----
On 13 Sep 2006, at 01:30, Dmitry S. Makovey wrote:
whenever I request '/file_view' method on file objects - everything
works as expected, as soon as I use '/download' all the settings are
discarded by CPM.
Well, the settings are not "discarded". The Cache Policy Manager just
does not get a chance to apply them.
It is a long-standing bug that the CMFDefault File index_html (and
download, which is obsolete in newer CMF versions) simply defers to
index_html from OFS.File. That one doesn't know anything about Cache
Policy Managers, it only deals with the Zope ZCacheable cache manager
If you could, please file a bug report at http://www.zope.org/
Collectors/CMF/. All that needs to be done is to override index_html
(which I believe was never done because the implementation in
OFS.File is quite a beast - it was much easier to just reuse it).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests