Closed
Bug 215802
Opened 21 years ago
Closed 20 years ago
XMLHttpRequest used cached page when told not to
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 200706
People
(Reporter: jhartley, Assigned: hjtoi-bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718 When my Caching preferences are set to: Compare the page in the cache to the page on the network: Every Time I view the Page. XMLHttpRequest doesn't behave the way it is supposed to. If I request an XML file it opens it fine. If I then update the XML file, the original unchanged XML file is retrieved. I.e. the cached version. Reproducible: Always Steps to Reproduce: 0. Set Caching preferences to: Compare the page in the cache to the page on the network: Every Time I view the Page. 1. create file data.xml. 2. Read it with the following function and read output somehow: function requestXML(){ //Create XMLHttpRequest var xmlhttp; xmlhttp = new XMLHttpRequest(); //Grab XML off Apache xmlhttp.open("GET", "http://jeremy/test/data.xml",true); xmlhttp.onreadystatechange=function() { //Function for when xml is loaded if (xmlhttp.readyState==4) { //Read through output and create simple page displaying results doc = xmlhttp.responseXML; generatePopUp(doc); } } xmlhttp.setRequestHeader("Content-Type", "text/xml") //make the actual request xmlhttp.send(null); } 3. Change XML file and read output. Actual Results: The output of reading the XML should have changed to reflect the changes made to it however the results are the same as the first time the file was viewed. Expected Results: Mozilla should have retrieved the xml file from the web server instead of using a cached version.
Comment 1•21 years ago
|
||
Sounds like XMLHttpRequest is overriding the preference...
Assignee: gordon → hjtoi-bugzilla
Component: Networking: Cache → XML
QA Contact: cacheqa → ashishbhatt
I think the headers are just cached. When I send an HTTP 304 status code from my server, Mozilla is reading HTTP 200.
Comment 3•20 years ago
|
||
This seems to be a duplicate of bug 200706.
Assignee | ||
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 200706 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•