We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302813c commit a4f1db1Copy full SHA for a4f1db1
app/api/endpoints/catalogs.py
@@ -193,8 +193,7 @@ def _get_limits() -> tuple[int, int]:
193
logger.info(f"Found {len(recommendations)} recommendations for {type}")
194
195
logger.info(f"Returning {len(recommendations)} items for {type}")
196
- # Avoid serving stale results; revalidate on each request
197
- response.headers["Cache-Control"] = "no-cache"
+ response.headers["Cache-Control"] = "public, max-age=21600" # 6 hours
198
cleaned = [_clean_meta(m) for m in recommendations]
199
return {"metas": cleaned}
200
0 commit comments