搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How Do I Disable Caching of XML Files?

  • 1 回覆
  • 3 有這個問題
  • 2 次檢視
  • 最近回覆由 cor-el

more options

I trying to parse an RSS feed in php and view the results in Firefox. Unfortunately, even with caching disabled, Firefox still seams to load the old XML file. As a result I can't tell if the changes I've made to my code have allowed the feed to function properly. How do I keep Firefox from caching XML filed?

This seems to be different that caching for everything else. I am sick of seeing the same thing every time I load http://localhost/xmltest.php or http://localhost/xmltest.xml.

Also, while I am on the topic is there any way to fix Firefox so that it will parse RSS no matter what characters are within the elements of each tag. It seems like no matter what I do to eliminate certain type of characters from the feed the mere presence of one that is not "properly" formed breaks it.

I trying to parse an RSS feed in php and view the results in Firefox. Unfortunately, even with caching disabled, Firefox still seams to load the old XML file. As a result I can't tell if the changes I've made to my code have allowed the feed to function properly. How do I keep Firefox from caching XML filed? This seems to be different that caching for everything else. I am sick of seeing the same thing every time I load http://localhost/xmltest.php or http://localhost/xmltest.xml. Also, while I am on the topic is there any way to fix Firefox so that it will parse RSS no matter what characters are within the elements of each tag. It seems like no matter what I do to eliminate certain type of characters from the feed the mere presence of one that is not "properly" formed breaks it.

所有回覆 (1)

more options

Does opening the page in a Private Browsing mode tab work properly?

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Does it work properly if you disable the disk cache as a test?

  • browser.cache.disk.enable = false

You can optionally temporarily disable the memory cache as well.

  • browser.cache.memory.enable = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

See the about:cache page for the cache use.