Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
Don't cache responses that go to google. Fix BugID: 457
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhelmet committed Jul 15, 2010
1 parent 0cdc7f0 commit d81dbce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions darkblog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
expires(30.minutes, :public, :must_revalidate)
headers('Vary' => 'Accept-Encoding')
end

no_cache if user_agent?(/google/i)
end

set(:haml, { :ugly => true })
Expand Down

0 comments on commit d81dbce

Please sign in to comment.