# Stop caching of XML file for image gallery

**URL:** https://forum.kirupa.com/t/stop-caching-of-xml-file-for-image-gallery/79169
**Category:** flash
**Created:** [February 11, 2005, 12:11pm UTC](https://forum.kirupa.com/t/stop-caching-of-xml-file-for-image-gallery/79169 "2005-02-11T12:11:21Z")
**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:11pm UTC](https://forum.kirupa.com/t/stop-caching-of-xml-file-for-image-gallery/79169/1 "2005-02-11T12:11:21Z")

</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?
