diff --git a/app.py b/app.py index 3e798cb..5fca674 100755 --- a/app.py +++ b/app.py @@ -785,8 +785,7 @@ def serve_file(subpath): # skip logging on cache hits or on audio GETs (per your rules) do_log = ( not is_cache_request # skip if upstream CDN asked us to cache - and not is_audio_get # skip audio GETs - and request.method != 'HEAD' + and (request.method == 'HEAD' or not is_audio_get) # log HEADs; skip audio GETs ) # 3) Pick cache