diff --git a/r2/r2/lib/template_helpers.py b/r2/r2/lib/template_helpers.py index 12a181f5b..e4070f2b3 100755 --- a/r2/r2/lib/template_helpers.py +++ b/r2/r2/lib/template_helpers.py @@ -95,7 +95,7 @@ def static(path, allow_gzip=True): actual_path = os.path.join(*path_components) query = None - if should_cache_bust: + if path and should_cache_bust: file_id = static_mtime(actual_path) or random.randint(0, 1000000) query = 'v=' + str(file_id)