Dev (#2142)
* fix(chalice): fixed sourcemaps URL * refactor(chalice): added 'noindex' header to prevent API indexing
This commit is contained in:
parent
c06620248c
commit
761d7a6748
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue