Safari 15.3 cache url without parameters

I'm developing a Safari extension and the feature is rating a web page opened by user and will show a block page if the web page contains some phishing link

window.location.href = safari.extension.baseURI + "blockpage/blockpage.html?herf=" + window.location.href + "&score=" + score + "&level=1";

It works fine in Safari 14. But there is an odd scene on Safari 15.3 It will redirect to right local page with right parameters first but redirect twice quickly without parameters leads to fail to render local page

Any comments will be appreciated. Thanks a lot.

Safari 15.3 cache url without parameters
 
 
Q