Skip to content

Commit 3c63c16

Browse files
Merge branch 'main' of github.com:TimilsinaBimal/Watchly
2 parents fa7c83b + d34873d commit 3c63c16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/api/endpoints/catalogs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ def _get_limits() -> tuple[int, int]:
195195
logger.info(f"Found {len(recommendations)} recommendations for {type}")
196196

197197
logger.info(f"Returning {len(recommendations)} items for {type}")
198-
# Avoid serving stale results; revalidate on each request
199-
response.headers["Cache-Control"] = "no-cache"
198+
response.headers["Cache-Control"] = "public, max-age=21600" # 6 hours
200199
cleaned = [_clean_meta(m) for m in recommendations]
201200
return {"metas": cleaned}
202201

app/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.1"
1+
__version__ = "1.4.2"

0 commit comments

Comments
 (0)