Is there any way so that on refresh it loads css , js file automatically in flask . I am using MacOS and using two browser Safari and Chrome . Currently on safari I have to clear cache and refresh the browser every time to see the changes I am doing in css file or js file . Please any solution will help ? I checked on internet also but not getting a answer .

1 Answer 1


Look here. This basically explains exactly what you need.

Disable browser caching

  • I have included the meta tags in my html file and using app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 this setting in application.py file . Things have improved little bit. The files are reloaded on just single refresh (⌘ + R) on Safari . And I don't have to restart server also . Dec 30, 2019 at 8:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .