vSphere

 View Only
  • 1.  Need a way to clear cache while fetching data for flex plugin

    Posted Apr 04, 2016 07:43 PM

    HI,

           we are using vsphere webclient sdk 6.0 and our plugin is written in flex.Is there a way to avoid data getting cached in browser by using time stamp or using any method in SDK?

     

    Please suggest

     

    Marianne



  • 2.  RE: Need a way to clear cache while fetching data for flex plugin

    Broadcom Employee
    Posted Apr 08, 2016 03:20 PM

    hi Marianne,

    Please provide more details on the problem you're experiencing. Thanks.



  • 3.  RE: Need a way to clear cache while fetching data for flex plugin

    Posted Apr 08, 2016 04:46 PM

    Hi Laurent,

                       Here is the problem:

    We are using VCSA 6.0u1 and our plugin uses Flex.When our plugin comes up or is seen in the browser for the

    first time,we see that the data is cached in browser and the data submission from plugin GUI fails.But,after we clear the cache in browser,we see that the submission of the form from plugin gui goes through.

    view code:

     

        <s:VGroup>
            <mx:VBox width="100%" height="100%" paddingTop="5" paddingBottom="5" paddingLeft="5" paddingRight="5">
            </mx:VBox>
            <s:BorderContainer borderVisible="true" id="Info" >
            <mx:VBox width="100%" height="100%" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">    
                
                <mx:HBox width="100%" textAlign="left">
                    <mx:Label id="ipLbl"  text="IP:" fontWeight="bold" width="130"/>
                    <mx:TextInput id="ipData" width="100%" text="" />
                </mx:HBox>
                <mx:HBox width="100%" textAlign="left">
                    <mx:Label id="userLbl"  text="*User:" fontWeight="bold" width="130"/>
                    <mx:TextInput id="userData" width="100%"  text=""/>
                </mx:HBox>
                
                <mx:HBox width="100%" textAlign="left">
                    <mx:Label id="pwdLbl"  text="*Password:" fontWeight="bold" width="130"/>
                    <mx:TextInput id="pwdData" width="100%" displayAsPassword="true" text=""/>
                </mx:HBox>
                
                <mx:HBox>
                    <mx:Button id="Button" label="Submit"/>
                </mx:HBox>
            </mx:VBox>
            </s:BorderContainer>
        </s:VGroup>

     

    Should we clear the cache while sending http requests from flex UI?is there a way through SDk?

     

    usually through flex,we use timestamp in the url to make the browser refresh the data evertytime.I am not sure to avoid cached data when using SDk.Please suggest

     

    Marianne



  • 4.  RE: Need a way to clear cache while fetching data for flex plugin

    Broadcom Employee
    Posted Apr 09, 2016 10:28 PM

    > we see that the data is cached in browser

    You mean your plugin's form fields are pre-filled with old values?   This seems like a standard browser behavior.

    > the data submission from plugin GUI fails

    What fails exactly?  New values are not taken into account?

    Are you using a proxy to communicate to a java service as shown in the samples?