Invalidate HTTP caching when the cards change

https://app.fizzy.do/5986089/cards/3067
This commit is contained in:
Jorge Manrubia
2025-11-21 09:32:02 +01:00
parent 1211e180c2
commit e813b7eaf0
+1 -1
View File
@@ -1,6 +1,6 @@
class My::PinsController < ApplicationController
def index
@pins = Current.user.pins.includes(:card).ordered.limit(20)
fresh_when @pins
fresh_when etag: [ @pins, @pins.collect(&:card) ]
end
end