2025-12-25 upload
This commit is contained in:
18
venv/Lib/site-packages/mitmproxy/addons/anticache.py
Normal file
18
venv/Lib/site-packages/mitmproxy/addons/anticache.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user