Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

dont cache templates index (#7569)

Christian Byrne8ad7477647ea
diff --git a/server.py b/server.py
index 95092d595..62667ce18 100644
--- a/server.py
+++ b/server.py
@@ -48,7 +48,7 @@ async def send_socket_catch_exception(function, message):
@web.middleware
async def cache_control(request: web.Request, handler):
response: web.Response = await handler(request)
- if request.path.endswith('.js') or request.path.endswith('.css'):
+ if request.path.endswith('.js') or request.path.endswith('.css') or request.path.endswith('index.json'):
response.headers.setdefault('Cache-Control', 'no-cache')
return response