Answer the question
In order to leave comments, you need to log in
How can I prevent the browser from taking an image from the cache?
Good afternoon, there is an image server for internal use, on request - it gives out the n-th image from the directory:
Server code:
@app.route('/get_image')
def get_image():
n_img = int(request.args.get('n_img'))
file_name = get_file_n(n_img)
return send_file(file_name, mimetype='image/jpg')
<img src="http://192.168.1.13:49001/get_image?n_img=1">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question