didierfred / SimpleModifyHeaders

Extension for firefox and chrome to modify headers
164 stars 30 forks source link

Response headers can't be changed #10

Closed SomeComputerNerd closed 5 years ago

SomeComputerNerd commented 5 years ago

I wanted to use this extension to modify "cache-control" response headers received from server-side.

However, I have found that response headers can't be added or modified at all.

Create two nonsense headers, one for request and one for response:

a

Testing this:

b

I normally use the fork Waterfox, but I tested in the above pictures with Firefox with a new profile.

Thank you for your help and time.

didierfred commented 5 years ago

It modify the header but unfortunately you can't see it in the console . It seems firefox log the header before it is modified by the plugin . If you add a header "content-type" with value "text/plain" for all pages , you will see that the response header is modified since all page will be shown as plain text. I didn't find a solution for this problem ...

SomeComputerNerd commented 5 years ago

You're right, it actually is doing its job. I didn't test thoroughly enough. Thanks.