方法1
 
        location / {index  index.html index.htm;add_header Cache-Control no-cache,no-store;try_files $uri $uri/ /index.html;#include mime.types;if ($request_filename ~* .*\.(htm|html)$) {add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";}}
 
方法2
 
        location / {index  index.html index.htm;add_header Cache-Control no-cache,no-store;try_files $uri $uri/ /index.html;#include mime.types;#if ($request_filename ~* .*\.(htm|html)$) #{#  add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";# }}location = /index.html {#add_header Cache-Control "no-cache, no-store, must-revalidate";add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";add_header Pragma "no-cache";add_header Expires "0";}