blob: 9f5c2dc1db5495fd74ca33a19902556181212d6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from mitmproxy import ctx
class AntiCache:
def load(self, loader):
loader.add_option(
"anticache", bool, False,
"""
Strip out request headers that might cause the server to return
304-not-modified.
"""
)
def request(self, flow):
if ctx.options.anticache:
flow.request.anticache()
|