dreamweaver如何制作禁止頁面緩存

字號(hào):


    html
    只要加在頭部就可以了
    asp教程做法
    代碼如下:
    response.buffer = true
    response.expiresabsolute = now() - 1
    response.expires = 0
    response.cachecontrol = no-cache
    response.addheader pragma, no-cache
    php教程做法
    代碼如下:
    header('expires: mon, 26 jul 1997 05:00:00 gmt');
    header('last-modified: ' . gmdate('d, d m y h:i:s') . 'gmt');
    header('cache-control: no-cache, must-revalidate');
    header('pragma: no-cache');
    ?>
    還有一種更簡(jiǎn)單的方法,就是大家ajax時(shí)用到的?mt=隨便數(shù)據(jù)