Commit bcfbcdb4
Changed files (1)
app
controllers
app/controllers/sitemap_controller.rb
@@ -6,6 +6,8 @@ class SitemapController < ApplicationController
@tutorials = Tutorial.all
@base_url = "https://#{request.host_with_port}"
headers['Content-Type'] = 'application/xml'
+ expires_in(1.hour)
+ fresh_when(@creations) if @creations.any?
respond_to do |format|
format.xml
end