Fix linting
This commit is contained in:
@@ -427,10 +427,12 @@ def create_app(args):
|
|||||||
class NoCacheStaticFiles(StaticFiles):
|
class NoCacheStaticFiles(StaticFiles):
|
||||||
async def get_response(self, path: str, scope):
|
async def get_response(self, path: str, scope):
|
||||||
response = await super().get_response(path, scope)
|
response = await super().get_response(path, scope)
|
||||||
if path.endswith('.html'):
|
if path.endswith(".html"):
|
||||||
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
|
response.headers["Cache-Control"] = (
|
||||||
response.headers['Pragma'] = 'no-cache'
|
"no-cache, no-store, must-revalidate"
|
||||||
response.headers['Expires'] = '0'
|
)
|
||||||
|
response.headers["Pragma"] = "no-cache"
|
||||||
|
response.headers["Expires"] = "0"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
# Webui mount webui/index.html
|
# Webui mount webui/index.html
|
||||||
|
Reference in New Issue
Block a user