diff options
| author | mo khan <mo@mokhan.ca> | 2013-12-31 22:31:47 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-12-31 22:31:47 -0700 |
| commit | ee330f5fb7a45980aa97460d7ec34b4ff3fa2b1e (patch) | |
| tree | ece6f19cfa1aad89b501139968871147d44ba503 /app/controllers/tutorials_controller.rb | |
| parent | 8407ed7c3c87a13fd36c6e3eb111a9b41168f4d1 (diff) | |
remove etags... they are annoying and hard to control.
Diffstat (limited to 'app/controllers/tutorials_controller.rb')
| -rw-r--r-- | app/controllers/tutorials_controller.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index b9b70653..578b836f 100644 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -4,13 +4,11 @@ class TutorialsController < ApplicationController def index @tutorials = Tutorial.includes(:tags).page(params[:page]).per(15) expires_in(10.minutes) - fresh_when(Tutorial.maximum(:updated_at)) if Tutorial.any? end def show @tutorial = Tutorial.find(params[:id]) expires_in(24.hours) - fresh_when(@tutorial) end def new |
