We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfe8a85 + 2a70ddc commit f145657Copy full SHA for f145657
app/controllers/feed_controller.rb
@@ -1,9 +1,12 @@
1
class FeedController < ApplicationController
2
def index
3
@articles = ArticlePage.published
4
- respond_to do |format|
5
- format.html { redirect_to feed_path(format: :atom), status: :moved_permanently }
6
- format.atom
+
+ if stale?(@articles, public: true)
+ respond_to do |format|
7
+ format.html { redirect_to feed_path(format: :atom), status: :moved_permanently }
8
+ format.atom
9
+ end
10
end
11
12
0 commit comments