when we active cache it should be private

This commit is contained in:
Joffrey JAFFEUX 2024-12-07 17:53:47 +01:00
parent 5352c82052
commit 305b94f3a0

View File

@ -7,7 +7,7 @@ module ::DiscourseRewind
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required, only: %i[show]
def show
# expires_in 1.minute, public: true
# expires_in 1.minute, public: false
response.headers["X-Robots-Tag"] = "noindex"
render "show", layout: false