Don't add cache bust to static('').

This commit is contained in:
Max Goodman
2013-04-01 11:09:19 -07:00
parent d0394a1169
commit c9683902e2

View File

@@ -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)