How to clean chrome in-memory cache?

前端 未结 1 728
广开言路
广开言路 2021-02-02 00:16

I\'m developing an extension in chrome and I\'m trying to perform an action each time a user searches in Google. Currently I\'m using chrome.webRequest onBeforeRequest listener.

1条回答
  •  醉梦人生
    2021-02-02 00:44

    I asume the "Caching" is performed by the Google-Website with some crazy JavaScript in Objects, Arrays,... so emptying the browser in Memory-Cache won't help.

    My first thought was that the data was Stored in the sessionStorage (due to the fact that the Values had the search-term in them [here I searched for test] and are updated/created on every request/change of the selected "search-word"

    enter image description here)

    I tried clearing the Sessionstorage (even periodicaly), but it didn't really change the "not"-loading, further more the storage was recreated and even without the storage, the different results were displayed.

    Due to this Information and the fact that I can't check several 1000 lines of minfied JavaScript Code, I just can asume that the website does the caching of the requests. I hope this Information can point you in the right direction.

    0 讨论(0)
提交回复
热议问题