From c5f281282bd6c3e80993dca79b12e5dae12f411d Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 1 Jun 2014 17:11:58 -0400 Subject: [PATCH] nitpicky --- src/clj_jtwig/web/web_functions.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/clj_jtwig/web/web_functions.clj b/src/clj_jtwig/web/web_functions.clj index 4033f83..9f959dd 100644 --- a/src/clj_jtwig/web/web_functions.clj +++ b/src/clj_jtwig/web/web_functions.clj @@ -29,7 +29,10 @@ (defn- get-url-string [url] (if-let [modification-timestamp (get-resource-modification-timestamp url)] - (str url "?" modification-timestamp) + ; because it looks kind of dumb to have '?0' at the end of URLs when running from a jar ... + (if (= modification-timestamp 0) + url + (str url "?" modification-timestamp)) url)) (defn- minified-url? [url]