Skip to content

Commit 8ad7477

Browse files
dont cache templates index (#7569)
1 parent 98bdca4 commit 8ad7477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def send_socket_catch_exception(function, message):
4848
@web.middleware
4949
async def cache_control(request: web.Request, handler):
5050
response: web.Response = await handler(request)
51-
if request.path.endswith('.js') or request.path.endswith('.css'):
51+
if request.path.endswith('.js') or request.path.endswith('.css') or request.path.endswith('index.json'):
5252
response.headers.setdefault('Cache-Control', 'no-cache')
5353
return response
5454

0 commit comments

Comments
 (0)