对html文件不缓存


nginx的server下,加上请求头:

server{
...
    location ~.*\.(html)$
    {
        add_header 'Cache-Control' 'private,no-store,no-cache,must-revalidate,proxy-revalidate';
    }

}

原文链接:https://blog.yongit.com/note/963766.html