Opened 18 years ago
Closed 18 years ago
#936 closed Bug (wontfix)
Bug fix for ie xml cacheing
Reported by: | David Grover | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
IE caches XMLHttp requests, updated fckstyles.xml are not reflected in the editor.
I found that the following fix can be applied to fckeditorcode_ie.js.
B.setRequestHeader("If-Modified-Since", "Wed, 15 Nov 1995 04:58:08 GMT");
i.e.
B.open("GET",A,false); B.setRequestHeader("If-Modified-Since", "Wed, 15 Nov 1995 04:58:08 GMT"); B.send(null);
Thanks
D.
But that would force to always reload the xml file, even when it hasn't been changed since some months ago and that would be a very bad solution for 99.99% of the people.
If you are testing then you can change the fckconfig.js file to something like this: var rightNow = new Date(); FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml?time' + rightNow.toString() ;