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?

Note : I used firefox httpwatch to test, it seems with Http 1.1, after
the page is retrieved, it simultaneously retrieve 5 image files each
time, but it takes one second only to return the image is not outdated
(note : the image is not transfered, just the header).

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

Reply via email to