disable cache

This commit is contained in:
Qing 2022-11-17 22:11:54 +08:00
parent cce15c9506
commit 57fb3d0d1c
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta
http-equiv="Cache-Control"
content="no-cache, no-store, must-revalidate"
/>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta <meta
name="viewport" name="viewport"

View File

@ -208,7 +208,7 @@ def switch_model():
@app.route("/") @app.route("/")
def index(): def index():
return send_file(os.path.join(BUILD_DIR, "index.html")) return send_file(os.path.join(BUILD_DIR, "index.html"), cache_timeout=0)
@app.route("/inputimage") @app.route("/inputimage")