Skip to content

Commit

Permalink
chore: add cache header for prod service info
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Mar 6, 2023
1 parent bfe6907 commit 9c0501e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bento_aggregation_service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ async def get(self):
# Spec: https://github.com/ga4gh-discovery/ga4gh-service-info

if not CHORD_DEBUG:
# Cache production service info, since no information should change
self.set_header("Cache-Control", "private")
self.write({**self.SERVICE_INFO, "environment": "prod"})
return

Expand Down

0 comments on commit 9c0501e

Please sign in to comment.