On 1 August 2011 08:24, sailormoo...@gmail.com <sailormoo...@gmail.com> wrote: > I don't know why, but it seems to have a one second delay getting each > static file even in local host testing. > > :dependencies [[org.clojure/clojure "1.2.1"] > [org.clojure/clojure-contrib "1.2.0"] > [compojure "0.6.4"] > [ring-serve "0.1.0"] > [enlive "1.0.0"] > [clojureql "1.0.0"] > [mysql/mysql-connector-java "5.1.6"]] > :dev-dependencies [[lein-ring "0.4.5"]] > > (defroutes main-routes > (route/files "/") > (route/not-found "Page not found")) > > And I even tried route/resources, it's still slow, any idea to make > those file cached or any Jetty configuration is needed?
Are you certain that it's the route/files or route/resources functions that are slow? Have you tried replacing those functions with routes that return strings? - James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en