fix: force favicon refresh via /favicon.ico
This commit is contained in:
4
app.py
4
app.py
@@ -252,11 +252,13 @@ def health():
|
||||
|
||||
@app.route("/favicon.ico")
|
||||
def favicon():
|
||||
return send_from_directory(
|
||||
response = send_from_directory(
|
||||
app.static_folder,
|
||||
"img/favicon.png",
|
||||
mimetype="image/png",
|
||||
)
|
||||
response.headers["Cache-Control"] = "no-store, max-age=0"
|
||||
return response
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user