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