From c9683902e22805abe90e045730bb5f54987781a3 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Mon, 1 Apr 2013 11:09:19 -0700 Subject: [PATCH] Don't add cache bust to static(''). --- r2/r2/lib/template_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)