fix comment
This commit is contained in:
parent
ed7c142521
commit
d3743d2685
4
app.py
4
app.py
@ -782,8 +782,8 @@ def serve_file(subpath):
|
||||
ip_address = request.remote_addr
|
||||
user_agent = request.headers.get('User-Agent')
|
||||
|
||||
# skip logging on cache hits or on audio GETs (per your rules)
|
||||
# Log once per real fetch: skip CDN cache requests and HEADs, log GETs (including audio)
|
||||
# Logging: log every client GET (cached or not), but skip CDN prefetches (X-Cache-Request)
|
||||
# and HEAD probes to avoid double-counting.
|
||||
do_log = (
|
||||
not is_cache_request # skip if upstream CDN asked us to cache
|
||||
and request.method != 'HEAD'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user