Forcing a data refresh / overriding the cache

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Forcing a data refresh / overriding the cache

    Ok having resolved one issue with how my data was being accessed, I still have
    another as I suspected.

    I have a simple app which displays a dashboarding control based on data from
    an XML file.

    When I run my app in developer mode, I can make a change to the data in my XML
    file and immediately see changes in my dashboarding control every time I hit
    refresh, or click on a button I put on to renew the HTTPService call.

    But when I deploy the app on a virtual Server (using IIS) it ignores any
    changes I make unless I close my browser (IE) and re-open it. In the latter
    case i do see the changes made to the data.

    How can I force IIS to refresh the display or override the cache?

    D.

    Developer504 Guest

  2. Similar Questions and Discussions

    1. no cache for XML data
      I have a flash .swf that reads from an XML file. This file is updated frequently and I do not want it cached. Should I nocache it in the...
    2. Forcing a page NOT to load from cache
      I have tried: <cfoutput> <cfheader name="expires" value="#now()#"> <cfheader name="pragma" value="no-cache"> <cfheader name="cache-control"...
    3. IIS 6 / ASP Cache will not refresh
      I found the answer! It is a IIS 6 /ASP problem http://support.microsoft.com/default.aspx?scid=kb;en-us;332075
    4. Need to cache personalization data -- not sure which object to use
      Hi Matt, Although this might be considered a matter of preference, I'd advise you to store "per user" information in Session. The Cache object is...
    5. Data refresh
      Hello! After that I have changed the filter of a form, how I get immediately after the new data displayed? (The textboxs are all linked to the...
  3. #2

    Default Re: Forcing a data refresh / overriding the cache

    If the browser sees an url that is identical to one it has placed in the cache,
    it will use the local data instead of calling the server again.

    Do something like this:
    private function getMydata():void {
    MDATA.url = "/myPath.myXML.xml" + "?bogus=" + new Date().time;
    MDATA.send();

    That makes the Url unique, and the browser will call the server.

    Note, the Flash Player, uses the browsers HTTP functionality.

    Tracy

    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139