Reloading CSS automatically


Is there a way to reload CSS automatically after restart? If old css is found then Dash doesn’t reload it so I have to clear cookies every time.

Related code:

app.css.config.serve_locally = True
app.scripts.config.serve_locally = True

def static_file(path):
static_folder = os.path.join(os.getcwd(), ‘static’)
return send_from_directory(static_folder, path)


Keep your browser’s dev tools open and make sure the “clear cache” checkbox is clicked: caching - Disabling Chrome cache for website development - Stack Overflow

1 Like

Thanks!!! :smiley: