blog
copyright ©
creamu Inc. All Rights Reserved.
art direction & design: Kunitaka Kawashimo
code, interaction & photography: creamu Inc.
category: Technology

Flashで外部ファイル読み込み時にキャッシュを読まないようにする方法

Pocket

ちょっとメモ。Flashで外部ファイルを読み込んでいる際、更新性のあるものはキャッシュに対するケアをしておかないと、ユーザが古い情報を読んでしまいます。 URLRequest時に、以下のようにファイル名の後にパラメータを付けます。 new URLRequest(“test.txt?” + (new Date).time); 下記でもいいのですが、1000回に1回同じ数字になる可能性があるため、上記を選択。 new URLRequest(“test.txt?” + int(Math.random() * 1000));

Warning: A non-numeric value encountered in /home/users/1/creamuinc/web/creamu.co.jp/wp/wp-content/plugins/wp-social-bookmarking-light/vendor/twig/twig/lib/Twig/Environment.php(462) : eval()'d code on line 43

Warning: A non-numeric value encountered in /home/users/1/creamuinc/web/creamu.co.jp/wp/wp-content/plugins/wp-social-bookmarking-light/vendor/twig/twig/lib/Twig/Environment.php(462) : eval()'d code on line 43

Warning: A non-numeric value encountered in /home/users/1/creamuinc/web/creamu.co.jp/wp/wp-content/plugins/wp-social-bookmarking-light/vendor/twig/twig/lib/Twig/Environment.php(462) : eval()'d code on line 43