python - Why can't I update the css in real time after writing it in flask?
女神的闺蜜爱上我2017-06-30 09:54:12
0
3
1209
The css code has been modified, but when running the program, the content of the source code css is still a long time ago and has not been updated at all. Is this a deterrent?
Browser cache. Use
ctrl+F5
to refresh the pageBrowser cache. Set the browser developer mode to disable caching.
![](http://img.php.cn/upload/image/000/000/000/82eec8cfbb07ecb96a57bbcad0258c4d-0.png)
![](http://img.php.cn/upload/image/000/000/000/82eec8cfbb07ecb96a57bbcad0258c4d-1.png)
If it is chrome, it is as shown below, other browsers are similar.
You need to turn on Flask's debugging mode, set the debug parameter to True, and everything will be fine.