Subh775 commited on
Commit
fbe8d6c
·
1 Parent(s): ca7c953

async/await..

Browse files
Files changed (1) hide show
  1. backend/server.py +2 -2
backend/server.py CHANGED
@@ -204,8 +204,8 @@ class NoCacheStaticFiles(StaticFiles):
204
  def is_not_modified(self, response_headers, request_headers) -> bool:
205
  return False
206
 
207
- def get_response(self, path: str, scope):
208
- resp = super().get_response(path, scope)
209
  resp.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"
210
  return resp
211
 
 
204
  def is_not_modified(self, response_headers, request_headers) -> bool:
205
  return False
206
 
207
+ async def get_response(self, path: str, scope):
208
+ resp = await super().get_response(path, scope)
209
  resp.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"
210
  return resp
211