def after_dispatch(self, handler, response):
        if not isinstance(response, ETagResponseMixin):
            return response

        response.add_etag()

        if handler.request.if_none_match.contains_raw(response.get_etag()[0]):
            return handler.app.response_class(status=304)

        return response
Called after the class:`tipfy.RequestHandler` method was executed.
dataset/ETHPy150Open moraes/tipfy/tipfy/middleware.py/ETagMiddleware.after_dispatch