Add http caching to notifications

This commit is contained in:
Jorge Manrubia
2025-09-09 12:39:28 +02:00
parent 36488278a8
commit 4f1c5ee113
@@ -1,5 +1,7 @@
class Notifications::TraysController < ApplicationController
def show
@notifications = Current.user.notifications.unread.ordered.limit(100)
fresh_when @notifications
end
end