* fix(chalice): fixed sourcemaps URL

* refactor(chalice): added 'noindex' header to prevent API indexing
This commit is contained in:
Kraiem Taha Yassine 2024-04-26 11:04:11 +02:00 committed by GitHub
parent c06620248c
commit 761d7a6748
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -92,6 +92,7 @@ async def or_middleware(request: Request, call_next):
if now > 2:
now = round(now, 2)
logging.warning(f"Execution time: {now} s for {request.method}: {request.url.path}")
response.headers["x-robots-tag"] = 'noindex, nofollow'
return response

View file

@ -110,6 +110,7 @@ async def or_middleware(request: Request, call_next):
if now > 2:
now = round(now, 2)
logging.warning(f"Execution time: {now} s for {request.method}: {request.url.path}")
response.headers["x-robots-tag"] = 'noindex, nofollow'
return response