Permalink
Browse files

remove "Expires" caching directive from home page

  • Loading branch information...
1 parent ab975dd commit 48299797137718cdc61aa8fc5fe31b45d8115c47 @mislav committed Nov 4, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 app/controllers/movies_controller.rb
@@ -20,7 +20,6 @@ def index
@movies = Movie.find(:directors => @director).sort(:year, :desc).page(params[:page])
freshness_from_cursor @movies
else
- expires_in 5.minutes unless logged_in?
if logged_in? or stale?(last_modified: Movie.last_watch_created_at, public: true)
@movies = Movie.last_watched
end

0 comments on commit 4829979

Please sign in to comment.