搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.