Don't cache modifiers; rearrange the modifier controls

This commit is contained in:
cmdr2
2022-09-23 22:01:38 +05:30
parent 5bbef09f85
commit 657129e4a7
3 changed files with 8 additions and 7 deletions

View File

@ -206,7 +206,8 @@ def getAppConfig():
@app.get('/modifiers.json')
def read_modifiers():
return FileResponse(os.path.join(SD_UI_DIR, 'modifiers.json'))
headers = {"Cache-Control": "no-cache, no-store, must-revalidate", "Pragma": "no-cache", "Expires": "0"}
return FileResponse(os.path.join(SD_UI_DIR, 'modifiers.json'), headers=headers)
@app.get('/output_dir')
def read_home_dir():