#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    5
    Rep Power
    0

    Angry IE10 Not clearing cache even with call


    Hi,

    I'm having a problem with IE10 not clearing the cache and reloading an XML file data even when I make a call. The other browsers had no problem with doing it when I added this:

    Code:
    <meta http-equiv="cache-control" content="no-cache,no-store" />
    Anyone had any success getting IE to clear the cache? It's displaying the old XML file data and not the new one. Arg.

    Thanks!!
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Location
    Jakarta, Indonesia.
    Posts
    196
    Rep Power
    31
    Could you share the page?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    5
    Rep Power
    0
    phihong.com/html/adapters.html
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    5
    Rep Power
    0
    So, I just noticed that the cache clear and reloaded the new info since I first wrote this. Did it on it's own, so not sure if that's something going on between IE and the server or IE is reloading after the computer goes to sleep. I haven't a clue. Anyone else?

    Regardless, I'd still like to figure out how to clear the cache for a reload on call so the info displays right away.
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Location
    Jakarta, Indonesia.
    Posts
    196
    Rep Power
    31
    Well.
    I haven't tried a Spry plugin before, but maybe this might help your adapters.html (the additional change is in red):
    Code:
    <script type="text/javascript">
      var
        t = new Date(),
        ds1 = new Spry.Data.XMLDataSet(
          "../js/SpryAssets/adapters_grid_spry.xml?t=" + t.getTime(),
          "rows/row",
          {sortOnLoad: "Power", sortOrderOnLoad: "ascending",useCache:false});
      ds1.setColumnType("Power", "number");
      ds1.setColumnType("Volts", "number");
      ds1.setColumnType("Link", "html");
      //...
    </script>
    It seems to me that Spry tries to (ajax) load your XML document at page loading, so this change would "trick" Spry (running in IE) to always load "a new" document.

    However, if Spry also loads it at runtime, then I don't think this would work either
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    5
    Rep Power
    0
    Thanks! I'll try that.

IMN logo majestic logo threadwatch logo seochat tools logo