diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 0e5fcac28..281aa09df 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -132,8 +132,7 @@ class StoriesController < ApplicationController @stories = @stories.decorate assign_podcasts @article_index = true - @sidebar_ad = DisplayAd.where(approved: true, published: true, placement_area: "sidebar").first - set_surrogate_key_header "articles", @stories.map(&:record_key) + set_surrogate_key_header "main_app_home_page" response.headers["Surrogate-Control"] = "max-age=600, stale-while-revalidate=30, stale-if-error=86400" render template: "articles/index" end diff --git a/app/views/articles/_sidebar_additional.html.erb b/app/views/articles/_sidebar_additional.html.erb index b24dd14f3..af5908ad9 100644 --- a/app/views/articles/_sidebar_additional.html.erb +++ b/app/views/articles/_sidebar_additional.html.erb @@ -18,149 +18,154 @@ <% end %> - <% if @sidebar_ad %> -