Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove "Expires" caching directive from home page

  • Loading branch information...
commit 48299797137718cdc61aa8fc5fe31b45d8115c47 1 parent ab975dd
@mislav authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  app/controllers/movies_controller.rb
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.