# Need browser to stop caching XML file

**URL:** <https://forum.kirupa.com/t/need-browser-to-stop-caching-xml-file/79170>\
**Category:** programming\
**Created:** [February 11, 2005, 12:13pm UTC](https://forum.kirupa.com/t/need-browser-to-stop-caching-xml-file/79170 "2005-02-11T12:13:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![citizen\_erazed](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@citizen\_erazed](https://forum.kirupa.com/u/citizen_erazed)\
**Post date:** [February 11, 2005, 12:13pm UTC](https://forum.kirupa.com/t/need-browser-to-stop-caching-xml-file/79170/1 "2005-02-11T12:13:26Z")

</div>

I’m using an image gallery that reads data from an XML file (image, title & description) so that it is easily updatable. My problem is that the browser is caching the XML file and I don’t see the updates unless I empty the cache.

Because there is only 1 html file, I placed the lines in the file:

\<meta http-equiv=“pragma” content=“no-cache”/\>  
\<meta http-equiv=“expires” content=“0”/\>  
\<meta http-equiv=“cache-control” content=“no-cache”/\>

The main flash file loads another swf file - gallary, which in turn is calling the XML file, and it seems to be coming from the cache.

Any ideas to make sure the browser reads from the server everytime?
