hide98's blog

くうねるあそぶ。で過ごしたい。が。

ajaxでブラウザにキャッシュさせない方法

http://tech.bayashi.net/pdmemo/browsercache.html

perl/CGIの場合
print "Content-type: text/html\n";
print "Pragma: no-cache\n";
print "Cache-Control: no-cache\n";
print "Expires: Thu, 01 Dec 1994 16:00:00 GMT\n\n";
とヘッダを出力させる。