[Laszlo-dev] For Review: Change 20080514-maxcarlson-C Summary: Bypass caching for non-multiframe resources in dhtml

André Bargull a.bargull at intensis.de
Thu May 15 08:25:03 PDT 2008


Approved.

I wonder whether we should give the user the possibility to decide to 
use the cache, or not.
According to the java-doc for "LzView#setSource(..)", you can set a 
"cache"-argument. But this works only for swf and if you use it for 
dhtml, you'll get false results, i.e. argument is "none", but cache will 
be used nevertheless.
>   * @param String source: The URL from which to load the resource for 
> this view.
>   ** @param String cache: If set, controls caching behavior. Choices are
>   * <code>none</code> , <code>clientonly</code> , 
> <code>serveronly</code> , <code>both</code> (the default).*
>   * @param String headers: Headers to send with the request, if any.


On 5/15/2008 2:53 AM, Max Carlson wrote:
> Change 20080514-maxcarlson-C by maxcarlson at Roboto on 2008-05-14 
> 17:48:31 PDT
>     in /Users/maxcarlson/openlaszlo/trunk-clean
>     for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Bypass caching for non-multiframe resources in dhtml
>
> New Features:
>
> Bugs Fixed: LPP-5467 - Image Pool grows without way to force unneeded 
> images to be destoryed
>
> Technical Reviewer: a.bargull at intensis.de
> QA Reviewer: promanik
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details: LzSprite.js - Only use the cache for resources.
>
> LzPool.js - Accept another argument in get() to skip caching.
>
>
> Tests: 
> http://localhost:8080/trunk-clean/examples/components/style_example.lzx?lzr=dhtml&lzt=html mouseover 
> of resources is as responsive as before.  
> http://localhost:8080/trunk-clean/demos/lzpix/app.lzx?lzt=html&lzr=dhtml each 
> drag into the bin causes the photo to reload, fixing a bug in dhtml 
> for lzpix.
>
> Files:
> M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
> M      WEB-INF/lps/lfc/kernel/dhtml/LzPool.js
>
> Changeset: 
> http://svn.openlaszlo.org/openlaszlo/patches/20080514-maxcarlson-C.tar
>


More information about the Laszlo-dev mailing list