<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,6 +37,11 @@ module Fleximage
       # Set proper content type
       @view.controller.response.content_type = Mime::Type.lookup_by_extension(requested_format.to_s).to_s
       
+      # Set proper caching headers
+      if defined?(Rails) &amp;&amp; Rails.env == 'production'
+        @view.controller.response.headers['Cache-Control'] = 'public, max-age=86400'
+      end
+      
       # return rendered result
       return result.output_image(:format =&gt; requested_format)
     ensure</diff>
      <filename>lib/fleximage/view.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>24a0549606c690b20729be97b1037fa1763f82db</id>
    </parent>
  </parents>
  <author>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </author>
  <url>http://github.com/Squeegy/fleximage/commit/be70e1871971af5bd77a7e6eca71e7e11303096d</url>
  <id>be70e1871971af5bd77a7e6eca71e7e11303096d</id>
  <committed-date>2008-07-20T15:12:53-07:00</committed-date>
  <authored-date>2008-07-20T15:12:53-07:00</authored-date>
  <message>Use a more browser cachable header for rendered images in production mode. [#1 stae:resolved]</message>
  <tree>cc0c167044d47fcbf2365530dea4d59712ba0ad6</tree>
  <committer>
    <name>Alex Wayne</name>
    <email>alex@beautifulpixel.com</email>
  </committer>
</commit>
