Skip to content

Commit

Permalink
make it clear when using the newly added cache
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Apr 24, 2024
1 parent 75fac4a commit b0e798e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def proxy():

if cached_resp and "etag" in cached_resp:
if "last_checked" in cached_resp and current_time - last_checked < 60:
logger.info(f"Using cached data for URL: {url_to_fetch}")
logger.info(f"Using newly cached data for URL: {url_to_fetch}")
return jsonify(json.loads(cached_resp["data"]))
else:
headers['If-None-Match'] = cached_resp["etag"]
Expand Down

0 comments on commit b0e798e

Please sign in to comment.