blob: 8d748a21d1bd3c8d7fb6d515e57df405c8a26a15 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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()
|