diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/site.clj | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/site.clj b/src/site.clj index 4454da3..69972ed 100644 --- a/src/site.clj +++ b/src/site.clj @@ -981,12 +981,9 @@ ORDER BY msg_count DESC") ;; Compojure Routes (defn serve-static [dir path] - ; TODO: cache other static files (js, css, etc.) - (let [cache-header (if (re-find pic-regex path) - {:headers {"Cache-Control" "max-age=604800,public"}} - {})] - [cache-header - (serve-file dir path)])) + (if (= path "") + (redirect-to "http://dump.fm") + (serve-file dir path))) (defroutes static (GET "/static/*" (serve-static "static" (params :*))) |
