Skip to content
代码片段 群组 项目
未验证 提交 33e5203a 编辑于 作者: bymyself's avatar bymyself 提交者: GitHub
浏览文件

Don't cache index.html (#4211)

上级 a178e259
No related branches found
No related tags found
无相关合并请求
......@@ -127,7 +127,11 @@ class PromptServer():
@routes.get("/")
async def get_root(request):
return web.FileResponse(os.path.join(self.web_root, "index.html"))
response = web.FileResponse(os.path.join(self.web_root, "index.html"))
response.headers['Cache-Control'] = 'no-cache'
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
return response
@routes.get("/embeddings")
def get_embeddings(self):
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册