How do I tell the browser not to cache an xml file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcelrob5
    New Member
    • Jun 2010
    • 19

    #1

    How do I tell the browser not to cache an xml file?

    I am writing an intranet application that uses Fusion Charts to display the results of a database query. My problem is the results are stored in an xml file that gets rewritten with each search. The Fusion Chart uses the xml file to render the results into a graph. The problem is that the xml file gets cached by the webserver when the application gets loaded and the chart only displays the data from a when the application last ran. What i need to know is how to tell the web server not to cache the xml file. Any thoughts?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    nothing you can do on the XML level. you need to set some HTTP headers (the cache-control headers).

    Comment

    Working...