Compare commits
2 Commits
cd2592a4b1
...
ed7c142521
| Author | SHA1 | Date | |
|---|---|---|---|
| ed7c142521 | |||
| 08f9eef1f0 |
2
app.py
2
app.py
@ -783,9 +783,9 @@ def serve_file(subpath):
|
||||
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)
|
||||
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'
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user