对html文件不缓存
nginx的server下,加上请求头:
server{
...
location ~.*\.(html)$
{
add_header 'Cache-Control' 'private,no-store,no-cache,must-revalidate,proxy-revalidate';
}
}
nginx的server下,加上请求头:
server{
...
location ~.*\.(html)$
{
add_header 'Cache-Control' 'private,no-store,no-cache,must-revalidate,proxy-revalidate';
}
}