Flex :: AIR Cache Control Work / What Is Maximum Age Of Cached Content
Jan 6, 2011
I'm currently working on a project that needs to request a url multiple times. Having studied the the HTTP Proxy (Charles) it seems that AIR will cache the first response and then return the same response for each subsequent request.Does anybody know how to know if the response has been cached other than setting the URLRequest to useCache, but this doesn't say if the response was a cached response or not. The digest isn't set on the URLRequest either, although it does mention this is for swz only, so how does it know if the content is the current content or not? Is the responseHeaders used to find out how long to hold the cache i.e.Cache-Control: max-age=900
Also does anyone know how to flush/purge the cache or are we at the whim of the GC and in that case how does it know if to leave it in the cache or now?This makes sense to me, but still I would like to know how to regulate this cache.Further more: I've tested a set up where parallel URLLoaders (10) are made and created which open the same url to see what happens in that instance. It seems that each parallel request is made until a successful response is given, all subsequent calls are then cached. Calls which are sent out before the successful request is then completed. It looks like the items which are already in being processed do not use the cache and return with correct data.Additional The AIR runtime doesn't even send a "If-Modified-Since" header, so the cache isn't even honoring HTTP protocol. So it seems as if Adobe has implemented it's own version of a cache which doesn't even use HTTP/1.1 Header Field Definitions.
View 1 Replies
Similar Posts:
Dec 8, 2009
I have an app that has text appended to a TextArea (TA). It automatically scrolls to keep the recent line added in view. Over time, this could be a lot. Do I have to worry about this? Is there an upper limit? And, if so, how can I prune the oldest lines of text?
View 1 Replies
Aug 25, 2009
i am doing a project and i am loading .swf files in a FLEX 3 SWFLoader. i made a HSlider as a seeker to control the .swf file (forward and backword); BUT... if the swf file has sound and i drag the seeker forward or back word the sound does not effect i want to control the sound as i control the swf file note:: the sound is in the .swf file not loaded
View 1 Replies
May 26, 2009
We have a web app. built in flash that allows customers to upload images and text, customize the container in which these will be shown (a swf file) and then embed the code into thier website. There is also a sharing options that allows their users to display this container, together with the content, on their websites. (For e.g you can see the container as the Youtube player and the content as the videos the user chooses to show). The swf container uses an XML file to know what to display.
Now, I am not a flash developer, but a person who takes care of the project.We are currently working on the app and the swf and we still find bugs. Every time we fix sth, I am told to erase my cache to see the changes. My concern is that the client/users might not see the newer version that we make available, but the old one. We can't tell them to erase the cache and we can't afford to renounce using the cache since the images are big.I was told that, sometimes, the browser does not see that the current version is a new one and loads it from the cache (actually, it never detected that there is a newer version and I always had to erase the cache). How can we tell the browser "now, load the swf from cache" or "now, don't load the swf from cache".
View 1 Replies
Jul 8, 2010
Suppose you have a slideshow movie that loads content such as images or Flash movies itself and continually replaces content with new images or movies as a viewer browses through content. Is there a way to store images or movies that have been loaded so that if the same content is selected they do not have to downloaded again? Presumably once content has been unloaded or something has ben loaded into the same level the data is wiped from memory and has to be downloaded if it is displayed again. How could content be stored in Flash or does the content stored in the browser cache take care of this?
View 1 Replies
Dec 7, 2009
How do you know if the browser is actually using the cached swf RSL/library for Flex projects? I would like to be able to do different things from the preloader based on whether or not the user has never downloaded the library vs. they have it already cached by their browser.
View 1 Replies
Dec 7, 2009
We have a Flex application which doesn't currently use the Flex framework as an RSL. We're considering switching, but we're not sure what proportion of users will already have the framework cached.There's an added complication in that we're using the data visualisation components too, and we may have a choice as to which version of the framework we use.
View 2 Replies
Apr 5, 2011
In my application, I make numerous calls to preload images to brower cache in the background using Loader instances and ignore the complete event. I don't store the results in the application, but rather want to store them in the browser cache. The images have long Expires header dates.
When I want to use a particular image(s), I again use a Loader instance and call the same url and listen for the complete event to load the file to an Image.
The problem is that when I re-request the url for the "cached" image, it is making an http request with response 200 status, which I presume means it is hitting the server. How do I make sure that a request for a cached image never hits the server from Flex? I am finding that any request to a url for a cached image (with a long expires header) is making another request to the server, or at least that is my interpretation of it in Firebug.
View 1 Replies
Jun 29, 2009
Checking Cache as Bitmap doesn't work, you have to .cacheAsBitmap = true with actionscript?
View 2 Replies
Nov 15, 2011
Each time I publish new content on my flash page, the computers that had opened that page earlier (with old content) remain with the same old content, until their histories are removed, or the page is refreshed with SHIFT+reload.How can I build I page so this does not happen?
View 2 Replies
Jun 17, 2010
I have a project that is for several customers, the only difference is in the DB, everything else looks the same, except for the main page's text. That is loaded from an external swf file. I created a library, compiled it as an swc, imported it and using it as an RSL. The problem is that if once I've opened the page, and afterwards update the rsl (because changes in the text are needed), than it's already cached by the browser (not the flashplayer's cache but we shouldn't discuss this please!) and the updated swf won't be loaded. If I use it as an external, the page won't even start up (the browser says it's loaded, but it's blank, not even the loading progess bar of flex appear)
<local:MainPage includeIn="default" currentState="{MainPageState}" id="Page"
width="100%" height="100%" />
this is the code on the main page, if I comment this out, than the whole thing loads, even with the use of the "external" link-type. in the design view, I see the component, but I get a warning for the library:
Design mode could not load MainPage.swc. It may be incompatible with this SDK, or invalid.DesignAssetLoader.CompleteTimeout)
View 1 Replies
Jul 6, 2011
I have a spark skinnable component which contains a datagroup with images. The datagroup is scrolled by hovering the mouse over it. Everything works fine except one thing: after I change the datagroup provider, I need to scroll down automatically. The problem is the images are not loaded immediately after I set the provider so (contentHeight - height) does not yet represent the actual maximum scrolling position. Is there an easy way of telling the datagroup to scroll down as its content loads? Because the workaround seems to be not so straightforward. This is the code for scrolling(thumbnailStrip is my datagroup):
[Code]...
View 1 Replies
Jul 28, 2009
Do FMS cores share the same FLV cache or does each core have it's own cache?
View 1 Replies
Aug 5, 2009
I was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342.
Following is the code snippet ...
avg += int(totalData[i][col.dataField]);
I have even replaced it with Number, but it's still showing the same negative number.
View 4 Replies
Mar 31, 2011
Anyone here know the maximum size of a Flex canvas or UIComponent? I know the old MovieClip class was limited to 2800x2800px.
View 1 Replies
Feb 10, 2010
How would I find the maximum value in a specific column in a Flex DataGrid?
View 2 Replies
Feb 10, 2010
I have an advancedatagrid that displays a table of values from an arraycollection coming from a webservice. I am wanting to highlight either the maximum or minimum value in a row or column.I'm not bothered how they are highlighted - be it the backround changed, the font colour changed or just making it bold - I just want that particular cell to be different to the others.What I'm struggling with is finding the cell with the maximum (or minimum) value and then changing it's appearance.In one grid I want to compare across the row, in another accros the columns.
View 1 Replies
Oct 16, 2010
I tried to repetitive press sound effect, each MP3 is 8 secs long and as fast as I press the button, it suddenly hang for a few seconds before I could continue execute the sound effect again.
[URL]
Is it possible to have the sound effect load and play 50 or 100 instances at the same time?
View 1 Replies
Sep 18, 2009
I want to set Maximum and minimum value for X axis in bar chart in flex action script 3 file.
Following line in working in MXML file but I want these code in actionscript 3.
View 2 Replies
Sep 24, 2009
I'm trying to upload to amazon s3 using FileStream and UrlRequest.
But it seems I can only upload 2 files simultaneously.
Is there a reason for this? How can I work around this?
Also would this affect web service calls to a SOAP web service on the same domain?
View 2 Replies
May 6, 2010
What is the maximum number of concurrent connections possible in BlazeDS using only remoting service
View 2 Replies
Mar 11, 2011
I need to figure out how to get a column in a columnchart to show 100% height if it exceeds the axis maximum.For example, I am using a linear axis with a maximum of 2 but want to visually show that the column is at least 2 or greater but not show more than 2 on the axis.Currently if a value exceeds the axis maximum, flex simply doesn't show the column.
View 2 Replies
May 12, 2011
I need to change the starting and ending dates, so that the earliest date that can be chosen is January 1, 2011 and the latest date that can be chosen is April 30, 2011. Also, the user should only be able to select 30 days at a time.
View 1 Replies
Jun 30, 2011
I want to know the size limit of data which can be fetched in case of HTTP/Webservice/RO.
View 2 Replies
Jul 22, 2011
Using Flex 4 AIR, what is the maximum widtha and height I can set for line and the bordercontainer?
bc:borderContainer = new borderContainer();
bc.width = 80000;
bc.height = 80000;
View 1 Replies
Aug 17, 2010
I am writing a Flex application for use on a private intranet with no external Internet access. I want to use Google's 3D Maps Flex API, but it must be connected to the internet to download map tiles on demand.
Is there a way to locally cache the 3D map tiles and data so that I can run this app without an internet connection? And if not, is there a 3D GIS that supports Flex integration and allows for a local map cache?
View 1 Replies
Mar 12, 2009
I'm using an AS2 ScrollPane component and I want to be able to control the content of the ScrollPane....like change it's _x/_y or _height/_width....how do I do this?
View 6 Replies
Oct 31, 2010
Is it possible to control the content of the combo box ( in this case it is the months) through any kind of external files like xml. May be it is a xml file . I got one tutorial here but shall be glad if any one look into these codes. Also in the php file is it possible to Edit the Email address with the help of some kind of external file. I have no idea how to do this. Here is the As Code and the Php code.
[Code]...
View 1 Replies
Nov 18, 2010
can you use another form of content to control a Flash object embedded within an HTML page? Was thinking of a CSS menu to start with but really dont see how its possible, but that led to the idea of another Flash object within the page. (have Googled this extensively but all I seem to get these days from Google is a billion pages wanting to install some shady plugin or offer me some download of a handy .exe file that will solve all my problems.. )The reason being is the layout of the site (img attached) I would like to have a nice menu in a seperate div above the one containing the flash object.
Have toyed with the idea of having a strip within the flash object that matches the style of the page at the top of the content part (indicated by rainbow strip in img) and attaching the menu to the top of that (thus seamlessly blending in.) I really am wondering though, whether one F object can be used to control another embedded within the same page?
View 2 Replies
Nov 11, 2009
I am showing a stacked bar chart with Flex, and I am dynamically changing the data of the dataprovider. However, the minimum and maximum for the y-axis do not get reset with the new data. So if one dataset had a value of -100,000, but the next dataset has only positive values, the y-axis still starts at -100,000. How can I force the chart to redraw. I tried myChart.validateNow(), dataprovider.refresh(), etc.
[Code]...
View 3 Replies