Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. XML files are not served from cache using xml's load() method ..

XML files are not served from cache using xml's load() method ..

Scheduled Pinned Locked Moved Web Development
questiontoolsxmltutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajkamal_dfine
    wrote on last edited by
    #1

    Hi I have the below script When I use the xml.load method it is always shows Response Code as "200" However the Content expiration is set to 2 days. My Question is how to force the script to use the cached xml file when the file is in the cache? Tested in MSIE 7.0 if(document.all) var xml = new ActiveXObject("Microsoft.XMLDOM"); else var xml = document.implementation.createDocument("", "", null); var xmlObj; function verify() { if (xml.readyState != 4) return false; } function loadXML() { xml.async=false; xml.onreadystatechange=verify; xml.load("http://"+document.location.host+"/xmlstore/test.xml"); } function createDocument() { xmlObj=xml.documentElement; } //loadXML() //createDocument() //alert(xmlObj)

    Raj..

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups