async def METHOD_NAME(request: Request, call_next):
    response = await call_next(request)
    if str(request.url).endswith('index.html'):
        response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
    if str(request.url).endswith('.js'):
        response.headers['Cache-Control'] = 'no-cache, must-revalidate'
    return response