How to clear Chrome HSTS-Cache?
<p>Bg: I am developing a host management tool recently, and I want to realize such a function: auto-delete HSTS cache of chrome-browser by click a btn.
I run <a href="https://github.com/craSH/Chrome-STS" rel="nofollow">python scripts</a> to delete HSTS-cache file of chrome. But... after I finished delete that file, I must restart chrome and then this clear-operation works.(Maybe chrome read file and store it in cache?)</p>

<p>Question: So are there some methods to clear hsts-auto? not need to open chrome://net-internals/#hsts , or use my method and not need to restart chrome-browser?</p>

<p>THX~</p>

<p>Easiest option would be to configure a page on your webserver with a Strict-Transport-Security header with max-age=0. Then visit that page through Chrome to clear the HSTS cache.l for that site.</p>

<p>Note some pages preload the HSTS header into Chrome's source code so cannot be cleared. But for sites you own which are not preloaded, above should work.</p>

<p>This this also depends on the "clear page" being served over HTTPS to allow the header to be processed.</p>

python node.js google-chrome hsts