Skip to content
Browse files

Add Ring's wrap-not-modified to example.

  • Loading branch information...
1 parent 6660e16 commit fd55542bf7dd42426c2e4cc1863285c6d0f871bb @magnars committed Dec 29, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.md
View
6 README.md
@@ -75,7 +75,8 @@ Let's look at an example:
(if (= :dev (:env config)) ;; 19
strategies/serve-live-assets ;; 20
strategies/serve-frozen-assets)) ;; 21
- (ring.middleware.content-type/wrap-content-type)) ;; 22
+ (ring.middleware.content-type/wrap-content-type) ;; 22
+ (ring.middleware.not-modified/wrap-not-modified)) ;; 23
```
1. Assets are scripts, stylesheets, images, fonts and other static
@@ -157,6 +158,9 @@ Let's look at an example:
22. Since Ring comes with content type middleware, optimus doesn't
worry about it. Just make sure to put it after optimus.
+23. The same goes for responding with `304 Not Modified`. Since
+ optimus adds `Last-Modified` headers, ring handles the rest.
+
#### Using the new URLs
Since we're rewriting URLs to include cache busters, we need to access

0 comments on commit fd55542

Please sign in to comment.
Something went wrong with that request. Please try again.