2012年11月20日火曜日

iframe をキャッシュさせないためにURLの末尾をランダムにする

iframe をキャッシュさせないためにURLの末尾をランダムにする

<script language="JavaScript">
document.write("<iframe src='theme/iframe_youtube.html? " + Math.random()+ "' width=190 height=190 scrolling=no frameborder=0 /></iframe>");
</script>

<noscript>
     <iframe src="theme/iframe_youtube.html" width="190px" height="190px" scrolling="no" frameborder="0"></iframe>
</noscript>

0 件のコメント:

コメントを投稿

Crop-Thumbnails プラグインで切り抜いたサムネイルをブロックエディターで一覧表示する

ブロックテーマで Crop-Thumbnails を使用すると反映されない? Crop-Thumbnails プラグインで切り抜いたサムネイルをブロックテーマで一覧表示できなかったので対応策を書きます。 ブロックテーマで […] 投稿元: Microsoft Power Auto...