View Full Version : Does LZX create a new .swf for each request?
spinnergy
02-06-2003, 07:01 PM
It appears that the server is creating a new .swf every time a particular lzx file is requested. Is this true?
My hope would be that it is only created on the first request and the .swf file is returned thereafter. Otherwise, it seems like alot to ask of the server to keep recreating the same .swf file.
There was a bug with this before the release, I think specifically it occurred when the server was using automatic gzip compression, but I thought it got fixed. I'll ask around if it's still being seen.
What platform (server and browser) are you running on?
spinnergy
02-06-2003, 09:23 PM
I just cannot find the .swf file on the public site for the weather app. I tried to guess the URL as weather.swf just to see if I could answer my own question before asking.
I suppose I am just asking how the server serves the requests for a particular .swf (er LZX)
It is unclear to me how this works. I am guessing that the .swf file is created in a directory on the server by the application (at the request of the developer - a compile request). Then the developer can just reference the .swf file in the HTML source document.
It seems this would be the preferred method when the .swf file has not changed other than the data sources. So the swf can be cached and the data can always load fresh if desired.
The server is supposed to keep the compiled object files on disk, but not in a publicly accessible directory. It may need to keep multiple copies depending on the options that the app is compiled with. It also remembers dependencies on file modification time, so if any source files are modified, including included files, the server is supposed to recompile the app and cache the compiled swf file. But appears that it is recompiling every time here, even when the source files have not been modified.
spinnergy
02-06-2003, 09:44 PM
That sounds good to me.
Can you tell me what server OS and client browser version you are using?
antun
02-07-2003, 09:11 AM
Originally posted by spinnergy
It is unclear to me how this works. I am guessing that the .swf file is created in a directory on the server by the application (at the request of the developer - a compile request). Then the developer can just reference the .swf file in the HTML source document.
No, not quite: You reference the LZX file from the HTML, and add the querystring ?lzt=swf to tell it not to send a wrapper page.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.