Re: 'content_class' of Field.FileField is OFS.Image.File instead of CMFDefault.File

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]> Mon, 25 Sep 2006 17:41:25 -0300
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20060925204125.GK4356@cotia>
| I have the problem that in plone files and images do not go through CMF's 
| caching policy manager (e.g.  http://myplone.org/big_file/view goes through 
| the caching policy manager, but http://myplone.org/big_file and 
| http://myplone.org/big_file/download do not, which means that for the big 
| files no caching header can be set easily). 

Use CacheSetup and PolicyHTTPCacheManager. CacheSetup patches
OFS.Image.File to use the a cache manager called
'HTTPCache'. PolicyHTTPCacheManager forwards requests for caching to
the 'caching_policy_manager'.

-- 
Sidnei da Silva
Enfold Systems                http://enfoldsystems.com
Fax +1 832 201 8856     Office +1 713 942 2377 Ext 214

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV