Chovy’s Blog

Loading Flash Charts with XML over HTTPS

Mon, July 23, 2007 — Category: Development

Loading an xml-generated Flash chart or graph over https requires a smaller server tweak.

The simple answer: You must allow the xml file to be cached.

This could be a security risk in the situation where the chart data is sensitive. IE7 still suffers from this problem however.

Not only should the flash file itself “charts.swf” be cached, but the XML file used to generate the file needs to be cached as well.

All you need to do is remove any type of “no-cache” headers that are sent for those two files.


Cache-Control: no-cache #=> remove this line (http 1.1)
Pragma: no-cache #=> remove this line as well (if present - http 1.0)

There is a solution though that can still retain some security: limit the cache time to a few minutes or seconds.

That way if the user logs out from a public terminal, the cache would expire shortly — so the next user of the public terminal should not be able to see the chart data by hitting the back button or viewing the cache on the hard-drive.


Cache-Control: max-age=0

More info can be found about Cache-Control HTTP headers from the official spec.

  • Post Loading Flash Charts with XML over HTTPS to del.icio.us
  • Post Loading Flash Charts with XML over HTTPS to digg
  • Post Loading Flash Charts with XML over HTTPS to Furl
  • Add Loading Flash Charts with XML over HTTPS to YahooMyWeb
  • Simpify!
  • Post Loading Flash Charts with XML over HTTPS to shadows
  • Post Loading Flash Charts with XML over HTTPS to Spurl
  • Post Loading Flash Charts with XML over HTTPS to BuddyMarks
  • Submit Loading Flash Charts with XML over HTTPS to Slashdot

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.