machawk1 / warcreate

Chrome extension to "Create WARC files from any webpage"
https://warcreate.com
MIT License
206 stars 13 forks source link

Request header cache is deleted if not in record mode #73

Closed machawk1 closed 9 years ago

machawk1 commented 9 years ago

All previous data should be deleted on each new page navigation but it looks like chrome.webNavigation.onBeforeNavigate is fired after the request is sent.

machawk1 commented 9 years ago

When navigating to one page from another, the HTTP request for the new page is the last entry in the requestHeaders associative array. A solution might be to remove everything but the last entry. Completely deleting the array will remove the request header for the page about to be accessed.