add_header 'Clear-Site-Data' 'cache, cookies, executionContexts';
nginx配置
location ^~ /myUrl/ {
add_header 'Clear-Site-Data' 'cache, cookies, executionContexts';
root /home/wwwroot/default/;
try_files $uri $uri/ /myUrl/index.html;
index index.html index.htm;
}
主要是加add_header 'Clear-Site-Data' 'cache, cookies, executionContexts'
详见https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data