对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