We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98bdca4 commit 8ad7477Copy full SHA for 8ad7477
server.py
@@ -48,7 +48,7 @@ async def send_socket_catch_exception(function, message):
48
@web.middleware
49
async def cache_control(request: web.Request, handler):
50
response: web.Response = await handler(request)
51
- 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'):
52
response.headers.setdefault('Cache-Control', 'no-cache')
53
return response
54
0 commit comments