more caching stuff
This commit is contained in:
parent
ff8bb0f7c6
commit
f76d7bbc5d
|
@ -28,7 +28,7 @@ def get_model():
|
||||||
'code': 502,
|
'code': 502,
|
||||||
'error': 'failed to reach backend',
|
'error': 'failed to reach backend',
|
||||||
'type': error.__class__.__name__
|
'type': error.__class__.__name__
|
||||||
}), 500 # return 500 so Cloudflare doesn't intercept us
|
}), 200 # return 200 so Cloudflare caches the response
|
||||||
else:
|
else:
|
||||||
return jsonify({
|
return jsonify({
|
||||||
'result': model,
|
'result': model,
|
||||||
|
|
Reference in New Issue