On Tuesday 09 June 2009, Wolfgang Schnerring wrote: > To make browsers update their caches of resources immediately when the > resource changes, the absolute URLs of resources can now be made to > contain a hash of the resource's contents, so it will look like > /++noop++12345/@@/myresource instead of /@@/myresource. > > - Implemented an AbsoluteURL adapter that computes a hash of the > resource's contents and inserts that into the URL. - Content hashes will be > cached in memory, except when in developer mode - Introduced a ++noop++ > traverser that simply throws away the path segment - Wrote a bit of > documentation about resources
Mmmh, this looks like a lot of extra code to get behavior that is served better with different tools. Have you looked at z3c.versionedresource and z3c.traverser? Both of those should solve these type of use cases well. Regards, Stephan -- Entrepreneur and Software Geek Google me. "Zope Stephan Richter" _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )