The blob:http format link obtained by uploading the image to elementui can be opened normally, but after the page is refreshed, it shows that the file is not found. Please explain the reason and give the code to solve the problem...

Answer: This may be due to an image cache problem, which can be solved by setting the Cache-Control attribute of the HTTP header information. You can use the following code: res.setHeader('Cache-Control','no-cache'); or res.setHeader('Cache-Control','max-age=0');

Guess you like

Origin blog.csdn.net/weixin_35756892/article/details/129513401