aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/builtins/anticache.py
blob: 41a5ed95910f0b655cf7874b396e4b91f2996246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from __future__ import absolute_import, print_function, division


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()