def decorator(self, func):
        if inspect.isfunction(func):
            func._methodview = self
        elif inspect.ismethod(func):
            func.__func__._methodview = self
        else:
            raise AssertionError('Can only decorate function and methods, {} given'.format(func))
        return func
Alter cache headers. Don't cache content where data could be missing.
dataset/ETHPy150Open kolypto/py-flask-jsontools/flask_jsontools/views.py/_MethodViewInfo.decorator--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/views.py/fudge_headers