mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-05-05 06:09:27 +08:00
11 lines
247 B
Python
11 lines
247 B
Python
class AntiCache:
|
|
def __init__(self):
|
|
self.enabled = False
|
|
|
|
def configure(self, options, updated):
|
|
self.enabled = options.anticache
|
|
|
|
def request(self, flow):
|
|
if self.enabled:
|
|
flow.request.anticache()
|