diff --git a/nginx.conf b/nginx.conf index d1da56e..541d305 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,5 +7,15 @@ server { location / { try_files $uri $uri/ /index.html; + + ## html不缓存 + if ($request_filename ~* .*\.(htm|html)$) + { + add_header Cache-Control "no-store"; + } + + + + } -} \ No newline at end of file +}