On Tue, Aug 10, 2010 at 04:49:47PM -0300, Sidnei da Silva wrote:
On Tue, Aug 10, 2010 at 12:42 PM, Marius Gedminas <marius@gedmin.as> wrote:
How would you like that to be configured?
Option #1:
<browser:resource/resourceDirectory etags="off" /> ?
Option #2:
getMultiAdapter((resource, request), IETag).computeETag() ?
This is maybe a bit problematic, because the actual File object that contains all the data--such as filename--doesn't implement any interfaces. And neither does FileResource.
So maybe Option #1?
But then it's not easily overridable, globally, for a particular application, since each package may have its own browser:resource declarations. Option #3: IResourceETag(request).computeETag(path, timestamp, data) Feels a bit ad-hoc. Option #4: let people who want ultimate cache control use something else than zope.browserresource for serving static files. Feels a bit unfriendly (but Zope 3/Bluebream is usually pretty unfriendly...) Marius Gedminas -- http://pov.lt/ -- Zope 3/BlueBream consulting and development