Project

General

Profile

Bug #52

Headers not updated on cached requests

Added by jahoti about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
07/16/2021
Due date:
% Done:

0%

Estimated time:

Description

When a page is loaded from the cache (e.g. after reloading), we don't (can't?) modify the headers. That means, for instance, reloading a page after whitelisting (perhaps even after blacklisting) it won't have any effect as far as CSP blocking is concerned.

History

#1

Updated by koszko about 2 years ago

There seem to be some APIs for that. The one that reloads a tab while bypassing cache seems to be the most promising:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/reload

There's also one that can flush the entire cache:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData

#2

Updated by jahoti about 2 years ago

  • Status changed from New to Closed

Thanks for the API suggestions! It turns out the issue was indeed the same as you worked around earlier, and a minor adjustment of conditions fixes it. However, on a related note the handling of existing CSP headers needs additional sensitivity.

Also available in: Atom PDF