@app.route('/cache/<int:value>')
def cache_control(value):
 response = view_get()
 response.headers['Cache-Control'] = 'public, max-age={0}'.format(value)
 return response

@ app . route ( '/cache/<int:value>' ) def cache_control ( value ) : response = view_get ( ) response . headers [ 'Cache-Control' ] = 'public, max-age={0}' . format ( value ) return response
inserts cache/expires headers .