I was probably overthinking this.  I just set up a rake task to check
the time.now when I deploy and run this in my deploy recipe.

In case any newbs come across this..  This is what I did.

Rake task:

 SiteOption.find_by_key('last_deployed').update_attributes(:value =>
Time.now.httpdate)

Then in my application controller:

  before_filter :set_last_modified

  private

   def set_last_modified
      headers["Last-Modified"] = SiteOption.last_deployed
    end

In my deploy task:

   run "cd #{release_path}; rake fix_data:update_deploy_time
RAILS_ENV=#{app_env}"

Thanks for all the help!

-Mario
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to