[Laszlo-dev] Snippets make 2 requests when font tag is present
antun at laszlosystems.com
Fri Apr 17 13:13:43 PDT 2009
cacheWrapper seems to be Webtop-specific. I grepped both the OL and the
Webtop source trees. It's a folder where Webtop keeps embed code, the
wrapping HTML page, etc.
But the weird thing is that the SWF makes two separate HTTP requests for
the compiled import. Is it at all possible that Webtop somehow overrides
OpenLaszlo import behavior?
Here's what the webtop-lzmail/calendar/cacheWrapper directory looks like:
$ find cacheWrapper
P T Withington wrote:
> I'm not aware of any 'cacheWrapper' in OpenLaszlo, so I suspect this is
> something to do with WT.
> On 2009-04-17, at 15:34EDT, Antun Karlovac wrote:
>> Hi all,
>> I'm trying to simplify a very odd bug I found using snippets in OL with
>> Webtop. The symptoms are that snippets fail to load, but only under the
>> circumstances below. I can reproduce consistently with Webtop, but not
>> without, so I don't know how to file it. Here are some circumstances, if
>> this rings a bell, let me know:
>> - The only happens when running Webtop and accessing the wrapper
>> page via the webtop context. i.e. I have two webapps:
>> /webtop-lzmail/ - the Webtop webapp
>> /ol-webtop/ - OpenLaszlo 126.96.36.199 (11554)
>> Remember with Webtop, the two locations above often share a lot of
>> common space on the hard disk.
>> webtop-lzmail/calendar is the same as
>> ol-webtop/webtop/sdk/examples/lzmail/calendar. The
>> webtop-lzmail/calendar/index.jsp embeds the following URL over HTTP:
>> - It only happens if a font is declared in the library being imported.
>> Note the first point above - it'll work fine if you try it in a
>> simple OL example.
>> - When it does fail, and I monitor HTTP requests, I see two requests
>> for the library, not one:
>> - This results in a 200 response.
>> - This results in a 404 response.
>> Normally, if I don't access Webtop through the webtop webapp, but
>> instead hit the LZX directly, I only see one request, and it works:
>> Any ideas?
More information about the Laszlo-dev