def nocache(func):
def new_func(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>resp = make_response(func(*args, **kwargs))<EOL>resp.cache_control.no_cache = True<EOL>return resp<EOL><DEDENT>return update_wrapper(new_func, func)<EOL>
Stop caching for pages wrapped in nocache decorator.