开发者

Flash seems to be caching crossdomain.xml file

I have updated the crossdomain.x开发者_开发问答ml security settings for my site - but it seems that the older version is being cached in both IE and Chrome.

I've checked the headers sent by the server and it's not sending any cache control headers that would be forcing the browsers to be caching crossdomain.xml.

In an attempt to get around the issue I've also linked to my crossdomain.xml file in an iframe on the site. This hasn't worked though and flash still seems to be using the old security settings.

Has anyone encountered this? How did you get around the problem?


Use following apache directives to specify caching policy for the file:

<Directory /var/www/mysite>
  <FilesMatch "crossdomain.xml">
    Header set Cache-Control "max-age=86400, public, must-revalidate"
  </FilesMatch>
</Directory>


Flash by default ask for the XML file in the browser cache... if you want to be sure to download it put a querystring on the file name using a Date...

myfile.xml?d=01-13-2010_10:10

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜